diff options
author | Edin Kadribasic <edink@php.net> | 2006-05-24 22:00:57 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2006-05-24 22:00:57 +0000 |
commit | 7d605c31d1b07e9ee57f22a8bbc47a2a66b4b4aa (patch) | |
tree | 6299d923333b7345be934e383e148b3e7ed424a7 | |
parent | 2873c3a5ad2e445d9278d5fd60c940fc8c55171a (diff) | |
download | php-git-7d605c31d1b07e9ee57f22a8bbc47a2a66b4b4aa.tar.gz |
MFB: Initialize windows globals, fixes #37428
-rw-r--r-- | main/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <process.h> #elif defined(NETWARE) #include <sys/timeval.h> @@ -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; |