From: Ilia Alshanetsky Date: Wed, 28 Jun 2006 22:09:09 +0000 (+0000) Subject: MFH: Improved safe_mode check for the error_log() function. X-Git-Tag: php-4.4.3~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3072d1bb2b85e332337f391c8ff71e270e639edc;p=php MFH: Improved safe_mode check for the error_log() function. --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 922636e8a2..ee60fb70a4 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1871,7 +1871,7 @@ PHPAPI int _php_error_log(int opt_err, char *message, char *opt, char *headers T break; case 3: /*save to a file */ - stream = php_stream_open_wrapper(opt, "a", IGNORE_URL | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL); + stream = php_stream_open_wrapper(opt, "a", IGNORE_URL_WIN | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL); if (!stream) return FAILURE; php_stream_write(stream, message, strlen(message));