summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2003-06-04 07:46:22 +0000
committerSebastian Bergmann <sebastian@php.net>2003-06-04 07:46:22 +0000
commitd74d05f431eef9b86f4d2475b84da098f02c911d (patch)
treee0e8758ce1b0ef6da0cc8d1f9483d0bc0fb05ab3
parentfde80076ec2ce5e1a2e6629b59d31956d3cb55db (diff)
downloadphp-git-d74d05f431eef9b86f4d2475b84da098f02c911d.tar.gz
Fix segfault. #Hopefully not a Voodoo Fix[TM].
-rw-r--r--Zend/zend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 07d86bd5ac..97b0164834 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -565,9 +565,10 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_version_info = strdup(ZEND_CORE_VERSION_INFO);
zend_version_info_length = sizeof(ZEND_CORE_VERSION_INFO)-1;
- GLOBAL_FUNCTION_TABLE = (HashTable *) malloc(sizeof(HashTable));
- GLOBAL_CLASS_TABLE = (HashTable *) malloc(sizeof(HashTable));
+ GLOBAL_FUNCTION_TABLE = (HashTable *) malloc(sizeof(HashTable));
+ GLOBAL_CLASS_TABLE = (HashTable *) malloc(sizeof(HashTable));
GLOBAL_AUTO_GLOBALS_TABLE = (HashTable *) malloc(sizeof(HashTable));
+ GLOBAL_CONSTANTS_TABLE = (HashTable *) malloc(sizeof(HashTable));
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);