Fix uninitialized EG(user_error_handler_error_reporting)

Closes GH-15812
This commit is contained in:
Ilija Tovilo 2024-09-09 17:13:43 +02:00
parent 24a294922b
commit b9fdc0bdcd
No known key found for this signature in database
GPG Key ID: 5050C66BFCD1015A

View File

@ -775,6 +775,7 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals) /* {{
zend_init_call_trampoline_op();
memset(&executor_globals->trampoline, 0, sizeof(zend_op_array));
executor_globals->capture_warnings_during_sccp = 0;
executor_globals->user_error_handler_error_reporting = 0;
ZVAL_UNDEF(&executor_globals->user_error_handler);
ZVAL_UNDEF(&executor_globals->user_exception_handler);
executor_globals->in_autoload = NULL;