diff options
author | Stanislav Malyshev <stas@php.net> | 2003-06-04 09:09:47 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2003-06-04 09:09:47 +0000 |
commit | b4fcdaedeee907b72da599a8059e0b95786d32bd (patch) | |
tree | 1665f8fee891245d2f7272a0f754074718e4862e /Zend/zend.c | |
parent | f26c5f9ce44df2cee8a24172dfe65af09124d41f (diff) | |
download | php-git-b4fcdaedeee907b72da599a8059e0b95786d32bd.tar.gz |
fix non-ZTS build
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 97b0164834..8c57996742 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -37,7 +37,6 @@ #else # define GLOBAL_FUNCTION_TABLE CG(function_table) # define GLOBAL_CLASS_TABLE CG(class_table) -# define GLOBAL_CONSTANTS_TABLE CG(zend_constants) # define GLOBAL_AUTO_GLOBALS_TABLE CG(auto_globals) #endif @@ -568,7 +567,9 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i GLOBAL_FUNCTION_TABLE = (HashTable *) malloc(sizeof(HashTable)); GLOBAL_CLASS_TABLE = (HashTable *) malloc(sizeof(HashTable)); GLOBAL_AUTO_GLOBALS_TABLE = (HashTable *) malloc(sizeof(HashTable)); +#ifdef ZTS GLOBAL_CONSTANTS_TABLE = (HashTable *) malloc(sizeof(HashTable)); +#endif zend_hash_init_ex(GLOBAL_FUNCTION_TABLE, 100, NULL, ZEND_FUNCTION_DTOR, 1, 0); zend_hash_init_ex(GLOBAL_CLASS_TABLE, 10, NULL, ZEND_CLASS_DTOR, 1, 0); |