diff --git a/NEWS b/NEWS index d307b78c539..88f27025ac8 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,9 @@ PHP NEWS (dktapps) . Fixed bug GH-16902 (Set of opcache tests fail zts+aarch64). (nielsdos) +- Windows: + . Fixed bug GH-16849 (Error dialog causes process to hang). (cmb) + 21 Nov 2024, PHP 8.4.1 - BcMath: diff --git a/main/main.c b/main/main.c index 0b38f303c58..3a9299285f4 100644 --- a/main/main.c +++ b/main/main.c @@ -2118,8 +2118,9 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi _set_invalid_parameter_handler(old_invalid_parameter_handler); } - /* Disable the message box for assertions.*/ + /* Disable the message box for assertions and errors.*/ _CrtSetReportMode(_CRT_ASSERT, 0); + _CrtSetReportMode(_CRT_ERROR, 0); #endif #ifdef ZTS