mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Fix possibility of a crash during startup (very unlikely, but possible)
This commit is contained in:
parent
b7944539a4
commit
1f23e50789
@ -301,6 +301,7 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals)
|
||||
}
|
||||
zend_init_rsrc_plist(ELS_C);
|
||||
EG(lambda_count)=0;
|
||||
EG(user_error_handler) = NULL;
|
||||
}
|
||||
|
||||
|
||||
@ -401,6 +402,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
|
||||
#else
|
||||
zend_startup_constants();
|
||||
zend_set_default_compile_time_values(CLS_C);
|
||||
EG(user_error_handler) = NULL;
|
||||
#endif
|
||||
zend_register_standard_constants(ELS_C);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user