]> granicus.if.org Git - php/commitdiff
MFB51: Fixed bug #30760 (Remove MessageBox on win32 for E_CORE errors if
authorIlia Alshanetsky <iliaa@php.net>
Tue, 6 Dec 2005 23:32:27 +0000 (23:32 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 6 Dec 2005 23:32:27 +0000 (23:32 +0000)
display_startup_error is off).

main/main.c

index 1c071acbd9ee3866c4f784763e9496e5c1d3acd3..2db3e789e56ed80a468b10152dbc6b4e176d3921 100644 (file)
@@ -862,9 +862,8 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
 
                if (!module_initialized || PG(log_errors)) {
                        char *log_buffer;
-
 #ifdef PHP_WIN32
-                       if (type==E_CORE_ERROR || type==E_CORE_WARNING) {
+                       if ((type == E_CORE_ERROR || type == E_CORE_WARNING) && PG(display_startup_errors)) {
                                MessageBox(NULL, buffer, error_type_str, MB_OK|ZEND_SERVICE_MB_STYLE);
                        }
 #endif