From 7d605c31d1b07e9ee57f22a8bbc47a2a66b4b4aa Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Wed, 24 May 2006 22:00:57 +0000 Subject: [PATCH] MFB: Initialize windows globals, fixes #37428 --- main/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.c b/main/main.c index 7910e9120f..af8fb00618 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 @@ -1539,6 +1540,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; -- 2.50.1