mirror of
https://github.com/php/php-src.git
synced 2026-04-11 01:53:36 +02:00
Access to global variable safe_mode fixed.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user