Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c

From: Date: Thu, 05 Jun 2003 19:21:24 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1341@lists.php.net to get a copy of this message
It does look like a voodoo fix. What's crashing exactly? At 10:46 04/06/2003, Sebastian Bergmann wrote:
sebastian               Wed Jun  4 03:46:22 2003 EDT
Modified files:
    /ZendEngine2        zend.c
Log: Fix segfault. #Hopefully not a Voodoo Fix[TM]. Index: ZendEngine2/zend.c diff -u ZendEngine2/zend.c:1.231 ZendEngine2/zend.c:1.232
--- ZendEngine2/zend.c:1.231    Mon Jun  2 11:39:29 2003
+++ ZendEngine2/zend.c Wed Jun 4 03:46:22 2003 @@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: zend.c,v 1.231 2003/06/02 15:39:29 sebastian Exp $ */ +/* $Id: zend.c,v 1.232 2003/06/04 07:46:22 sebastian Exp $ */ #include "zend.h" #include "zend_extensions.h" @@ -565,9 +565,10 @@
        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);
-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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