pajoye                                   Thu, 04 Feb 2010 09:02:19 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=294501

Log:
- prevent possible crash when error/warnings are raised during startup on 
windows

Changed paths:
    _U  php/php-src/branches/PHP_5_3_2/
    _U  php/php-src/branches/PHP_5_3_2/ext/tidy/tests/
    U   php/php-src/branches/PHP_5_3_2/main/main.c
    _U  
php/php-src/branches/PHP_5_3_2/tests/security/open_basedir_parse_ini_file.phpt


Property changes on: php/php-src/branches/PHP_5_3_2
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/php/php-src/branches/PHP_5_3:292504,292574,292594-292595,292611,292624,292630,292632-292635,292654,292677,292682-292683,292693,292716,292719,292762,292765,292771,292777,292823,293051,293075,293114,293126,293131,293144,293146,293152,293176,293180,293216,293235,293253,293268,293341,293380,293400,293442,293447,293466,293487,293502,293538,293548,293558,293588,293590,293597,293627,293644,293653,293655,293699,293726-293728,293732,293762,293768,293804,293862,293906,293974,294040
/php/php-src/trunk:284726
   + 
/php/php-src/branches/PHP_5_3:292504,292574,292594-292595,292611,292624,292630,292632-292635,292654,292677,292682-292683,292693,292716,292719,292762,292765,292771,292777,292823,293051,293075,293114,293126,293131,293144,293146,293152,293176,293180,293216,293235,293253,293268,293341,293380,293400,293442,293447,293466,293487,293502,293538,293548,293558,293588,293590,293597,293627,293644,293653,293655,293699,293726-293728,293732,293762,293768,293804,293862,293897,293906,293974,294040
/php/php-src/trunk:284726


Property changes on: php/php-src/branches/PHP_5_3_2/ext/tidy/tests
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/php/php-src/branches/PHP_5_3/ext/tidy/tests:292562,292566,292571,292574,292635,292716,292719,292765,293146,293152,293176,293180,293216,293235,293253,293380,293400,293442,293447,293466,293487,293502,293538,293548,293558,293588,293590,293597,293627,293644,293653,293655,293699,293726-293728,293732,293762,293768,293804,293862,293906,294040
/php/php-src/trunk/ext/tidy/tests:284726,287798-287941
   + 
/php/php-src/branches/PHP_5_3/ext/tidy/tests:292562,292566,292571,292574,292635,292716,292719,292765,293146,293152,293176,293180,293216,293235,293253,293380,293400,293442,293447,293466,293487,293502,293538,293548,293558,293588,293590,293597,293627,293644,293653,293655,293699,293726-293728,293732,293762,293768,293804,293862,293897,293906,294040
/php/php-src/trunk/ext/tidy/tests:284726,287798-287941

Modified: php/php-src/branches/PHP_5_3_2/main/main.c
===================================================================
--- php/php-src/branches/PHP_5_3_2/main/main.c  2010-02-04 08:58:49 UTC (rev 
294500)
+++ php/php-src/branches/PHP_5_3_2/main/main.c  2010-02-04 09:02:19 UTC (rev 
294501)
@@ -980,6 +980,7 @@
                        php_log_err(log_buffer TSRMLS_CC);
                        efree(log_buffer);
                }
+
                if (PG(display_errors)
                        && ((module_initialized && !PG(during_request_startup))
                                || (PG(display_startup_errors)
@@ -1008,7 +1009,12 @@
                                        if ((!strcmp(sapi_module.name, "cli") 
|| !strcmp(sapi_module.name, "cgi")) &&
                                                PG(display_errors) == 
PHP_DISPLAY_ERRORS_STDERR
                                        ) {
+#ifdef PHP_WIN32
+                                               fprintf(stderr, "%s: %s in %s 
on line%d\n", error_type_str, buffer, error_filename, error_lineno);
+                                               fflush(stderr);
+#else
                                                fprintf(stderr, "%s: %s in %s 
on line %d\n", error_type_str, buffer, error_filename, error_lineno);
+#endif
                                        } else {
                                                php_printf("%s\n%s: %s in %s on 
line %d\n%s", STR_PRINT(prepend_string), error_type_str, buffer, 
error_filename, error_lineno, STR_PRINT(append_string));
                                        }
@@ -1850,7 +1856,7 @@
 #endif
        EG(bailout) = NULL;
        EG(error_reporting) = E_ALL & ~E_NOTICE;
-
+       EG(active_symbol_table) = NULL;
        PG(header_is_being_sent) = 0;
        SG(request_info).headers_only = 0;
        SG(request_info).argv0 = NULL;


Property changes on: 
php/php-src/branches/PHP_5_3_2/tests/security/open_basedir_parse_ini_file.phpt
___________________________________________________________________
Modified: svn:mergeinfo
   - 
/php/php-src/branches/PHP_5_3/tests/security/open_basedir_parse_ini_file.phpt:292562,292566,292571,292574,292716,293146,293152,293176,293180,293216,293235,293253,293380,293400,293442,293447,293466,293487,293502,293538,293548,293558,293588,293590,293597,293627,293644,293653,293655,293699,293726-293728,293732,293762,293768,293804,293862,293906,294040
/php/php-src/trunk/tests/security/open_basedir_parse_ini_file.phpt:265951
   + 
/php/php-src/branches/PHP_5_3/tests/security/open_basedir_parse_ini_file.phpt:292562,292566,292571,292574,292716,293146,293152,293176,293180,293216,293235,293253,293380,293400,293442,293447,293466,293487,293502,293538,293548,293558,293588,293590,293597,293627,293644,293653,293655,293699,293726-293728,293732,293762,293768,293804,293862,293897,293906,294040
/php/php-src/trunk/tests/security/open_basedir_parse_ini_file.phpt:265951

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to