Access to global variable safe_mode fixed.

This commit is contained in:
Kristian Köhntopp 2000-07-26 21:38:21 +00:00
parent 3d3d238021
commit cd2929aead

View file

@ -664,7 +664,7 @@ PHP_FUNCTION(posix_mkfifo)
convert_to_string(path); convert_to_string(path);
convert_to_long(mode); 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; RETURN_FALSE;
} }
result = mkfifo(path->value.str.val, mode->value.lval); result = mkfifo(path->value.str.val, mode->value.lval);