From: Ilia Alshanetsky Date: Tue, 6 Dec 2005 23:32:27 +0000 (+0000) Subject: MFB51: Fixed bug #30760 (Remove MessageBox on win32 for E_CORE errors if X-Git-Tag: RELEASE_1_0_4~509 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0191491f26ab182de732db85375e3851cbc8ac0;p=php MFB51: Fixed bug #30760 (Remove MessageBox on win32 for E_CORE errors if display_startup_error is off). --- diff --git a/main/main.c b/main/main.c index 1c071acbd9..2db3e789e5 100644 --- a/main/main.c +++ b/main/main.c @@ -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