1
0
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:
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_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);