]> granicus.if.org Git - php/commitdiff
MFH: Improved safe_mode check for the error_log() function.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jun 2006 22:09:09 +0000 (22:09 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 28 Jun 2006 22:09:09 +0000 (22:09 +0000)
ext/standard/basic_functions.c

index 922636e8a2e66866db327ea16a707c2a85cf9a25..ee60fb70a48aa1df7c87b68a7dac4fe490ac3765 100644 (file)
@@ -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));