]> granicus.if.org Git - php/commitdiff
fix non-ZTS build
authorStanislav Malyshev <stas@php.net>
Wed, 4 Jun 2003 09:09:47 +0000 (09:09 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 4 Jun 2003 09:09:47 +0000 (09:09 +0000)
Zend/zend.c

index 97b0164834914e57c73bfeb89435ef154ab0a7fb..8c5799674279c666de609cae0be2ef48b33461c6 100644 (file)
@@ -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);