]> granicus.if.org Git - php/commitdiff
Fix possibility of a crash during startup (very unlikely, but possible)
authorZeev Suraski <zeev@php.net>
Sun, 7 Jan 2001 02:47:32 +0000 (02:47 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 7 Jan 2001 02:47:32 +0000 (02:47 +0000)
Zend/zend.c

index e5b392f39d71cebcb9718dd6b1b40ceaddaa7fe2..b94d2ccf6442a4c31c375b4048e528ec3220d0ce 100644 (file)
@@ -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);