Changeset 166 for trunk/utils.c

Show
Ignore:
Timestamp:
09/14/2006 02:35:47 PM (7 years ago)
Author:
moo
Message:

use existing hashtable pDestructor to avoid accident undefined symbol

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r148 r166  
    390390    zend_hash_init_ex(TG(included_files), 5, NULL, NULL, 0, 1); 
    391391#ifdef HAVE_XCACHE_CONSTANT 
    392     zend_hash_init_ex(&TG(zend_constants), 20, NULL, ZEND_CONSTANT_DTOR, 1, 0); 
    393 #endif 
    394     zend_hash_init_ex(&TG(function_table), 128, NULL, ZEND_FUNCTION_DTOR, 0, 0); 
    395     zend_hash_init_ex(&TG(class_table), 16, NULL, ZEND_CLASS_DTOR, 0, 0); 
     392    zend_hash_init_ex(&TG(zend_constants), 20, NULL, EG(zend_constants)->pDestructor, 1, 0); 
     393#endif 
     394    zend_hash_init_ex(&TG(function_table), 128, NULL, CG(function_table)->pDestructor, 0, 0); 
     395    zend_hash_init_ex(&TG(class_table), 16, NULL, CG(class_table)->pDestructor, 0, 0); 
    396396 
    397397    sandbox->filename = filename;