]> granicus.if.org Git - php/commitdiff
Initialize windows globals, fixes #37428
authorEdin Kadribasic <edink@php.net>
Wed, 24 May 2006 22:00:15 +0000 (22:00 +0000)
committerEdin Kadribasic <edink@php.net>
Wed, 24 May 2006 22:00:15 +0000 (22:00 +0000)
main/main.c

index c22071632f2b1f7d8bb5e39b708b9955c0deda4e..174705ccded894b4b6ea9ffb562f899d4ee0649e 100644 (file)
@@ -30,6 +30,7 @@
 #ifdef PHP_WIN32
 #include "win32/time.h"
 #include "win32/signal.h"
+#include "win32/php_win32_globals.h"
 #include <process.h>
 #elif defined(NETWARE)
 #include <sys/timeval.h>
@@ -1436,6 +1437,9 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
        executor_globals = ts_resource(executor_globals_id);
        ts_allocate_id(&core_globals_id, sizeof(php_core_globals), (ts_allocate_ctor) core_globals_ctor, NULL);
        core_globals = ts_resource(core_globals_id);
+#ifdef PHP_WIN32
+       ts_allocate_id(&php_win32_core_globals_id, sizeof(php_win32_core_globals), (ts_allocate_ctor) php_win32_core_globals_ctor, NULL);
+#endif
 #endif
        EG(bailout) = NULL;
        EG(error_reporting) = E_ALL & ~E_NOTICE;