cvs: ZendEngine2 / zend.c

From: Date: Wed, 04 Jun 2003 09:09:47 +0000
Subject: cvs: ZendEngine2 / zend.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1328@lists.php.net to get a copy of this message
stas Wed Jun 4 05:09:47 2003 EDT Modified files: /ZendEngine2 zend.c Log: fix non-ZTS build Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.234 ZendEngine2/zend.c:1.235 --- ZendEngine2/zend.c:1.234 Wed Jun 4 04:52:43 2003 +++ ZendEngine2/zend.c Wed Jun 4 05:09:47 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.c,v 1.234 2003/06/04 08:52:43 sebastian Exp $ */ +/* $Id: zend.c,v 1.235 2003/06/04 09:09:47 stas Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -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 @@ 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);

« previous php.zend-engine.cvs (#1328) next »