]> granicus.if.org Git - php/commitdiff
-More
authorAndi Gutmans <andi@php.net>
Mon, 26 Apr 1999 03:03:36 +0000 (03:03 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 26 Apr 1999 03:03:36 +0000 (03:03 +0000)
main/main.c

index 7ac337bd337fcafb782e8aa922255ae4c9771dee..236209a41c22c3f95fa1f7e60c63e96ad764579c 100644 (file)
@@ -111,7 +111,7 @@ void *gLock;                                        /*mutex variable */
 HashTable configuration_hash;
 char *php3_ini_path = NULL;
 #ifdef ZTS
-php_core_globals *main_core_globals;
+php_core_globals *main_core_globals=NULL;
 #endif
 
 
@@ -784,7 +784,9 @@ static void php3_config_ini_shutdown()
 #ifdef ZTS
 static core_globals_ctor(php_core_globals *core_globals)
 {
+       if (main_core_globals) {
                *core_globals = *main_core_globals;
+       }
 }
 #endif