From: Edin Kadribasic Date: Wed, 24 May 2006 22:00:15 +0000 (+0000) Subject: Initialize windows globals, fixes #37428 X-Git-Tag: php-5.2.0RC1~472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=740d39454baa8015c08c6c8439842fd095ba0d8a;p=php Initialize windows globals, fixes #37428 --- diff --git a/main/main.c b/main/main.c index c22071632f..174705ccde 100644 --- a/main/main.c +++ b/main/main.c @@ -30,6 +30,7 @@ #ifdef PHP_WIN32 #include "win32/time.h" #include "win32/signal.h" +#include "win32/php_win32_globals.h" #include #elif defined(NETWARE) #include @@ -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;