Browse Source

Access to global variable safe_mode fixed.

PHP-4.0.5
Kristian Köhntopp 26 years ago
parent
commit
cd2929aead
  1. 2
      ext/posix/posix.c

2
ext/posix/posix.c

@ -664,7 +664,7 @@ PHP_FUNCTION(posix_mkfifo)
convert_to_string(path);
convert_to_long(mode);
if (php3_ini.safe_mode && (!php_checkuid(path->value.str.val, NULL, 3))) {
if (PG(safe_mode) && (!php_checkuid(path->value.str.val, NULL, 3))) {
RETURN_FALSE;
}
result = mkfifo(path->value.str.val, mode->value.lval);

Loading…
Cancel
Save