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

diff --git a/NEWS b/NEWS
index ba03cfb238c486055871841366b73b24758f9f83..309482e80e25bcb9d66a15012bcefabd723e9ff1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ PHP                                                                        NEWS
 - Changed realpath cache to be disabled when "open_basedir" or "safe_mode"
   are enabled on per-request basis. (Ilia)
 
+- Improved safe_mode check for the error_log() function. (Ilia)
 - Improved the error reporting in SOAP extension on request failure. (Ilia)
 - New crypt() implementation for win32 which is about 10 times faster and has 
   more friendly license. (Frank, Dmitry)
index 7d463283aa5ac76a4affe654b5384ec8c66e8e56..56d0c8277cd0ff489e6efe47c4c80620a53a2afa 100644 (file)
@@ -4936,7 +4936,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));