Changeset 303

Show
Ignore:
Timestamp:
04/21/07 13:34:41 (1 year ago)
Author:
bart
Message:

Add patch from Nathanael (eaccelerator@polymorpheus.com)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r302 r303  
     12007-04-21  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2 
     3        * Add patch from Nathanael (eaccelerator@polymorpheus.com) 
     4 
    152007-03-07  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    26 
  • eaccelerator/trunk/eaccelerator.c

    r299 r303  
    12171217#endif 
    12181218 
    1219  
    12201219    zend_hash_init_ex(&tmp_function_table, 100, NULL, ZEND_FUNCTION_DTOR, 1, 0); 
    12211220    zend_hash_copy(&tmp_function_table, &eaccelerator_global_function_table, NULL, &tmp_func, sizeof(zend_function)); 
     
    12241223 
    12251224    zend_hash_init_ex(&tmp_class_table, 10, NULL, ZEND_CLASS_DTOR, 1, 0); 
     1225#ifdef ZEND_ENGINE_2 
     1226                zend_hash_copy(&tmp_class_table, &eaccelerator_global_class_table, (copy_ctor_func_t)zend_class_add_ref, &tmp_class, sizeof(zend_class_entry *)); 
     1227#else 
    12261228    zend_hash_copy(&tmp_class_table, &eaccelerator_global_class_table, NULL, &tmp_class, sizeof(zend_class_entry)); 
     1229#endif 
    12271230 
    12281231    orig_class_table = CG(class_table);;