Changeset 90

Show
Ignore:
Timestamp:
05/10/05 12:56:56 (3 years ago)
Author:
zoeloelip
Message:

This patch adds the right destructor for the propertiesinfo hashtable, but it doesn't fix bug 1179270

Files:

Legend:

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

    r89 r90  
    22         
    33        * Added some includes to satisfy VC.NET (thanks to dakalka, patch 1198522) 
     4        * This patch adds the right destructor for the propertiesinfo hashtable, but it doesn't fix bug 1179270 
    45 
    562005-05-09 Franck Tabary <franck34 at users.sourceforge.net> 
  • eaccelerator/trunk/eaccelerator.c

    r89 r90  
    23912391} 
    23922392 
     2393/* is equal to zend_destroy_property_info in zend_compile.c, this function is  
     2394 * needed as destructor for the properties_info hashtable, but is declared  
     2395 * static, so redefine it here. */ 
     2396static void destroy_property_info(zend_property_info *property_info) { 
     2397  efree(property_info->name); 
     2398} 
     2399 
    23932400static zend_class_entry* restore_class_entry(zend_class_entry* to, eaccelerator_class_entry *from TSRMLS_DC) 
    23942401{ 
     
    25292536  to->default_properties.pDestructor = ZVAL_PTR_DTOR; 
    25302537  restore_hash(&to->properties_info, &from->properties_info, (restore_bucket_t)restore_property_info TSRMLS_CC); 
    2531   to->properties_info.pDestructor = ZVAL_PTR_DTOR
     2538  to->properties_info.pDestructor = (dtor_func_t) destroy_property_info
    25322539  if (from->static_members != NULL) { 
    25332540    ALLOC_HASHTABLE(to->static_members); 
     
    25402547*/ 
    25412548  } 
    2542 /*??? FIXME 
    2543     to->properties_info.pDestructor = (dtor_func_t) zend_destroy_property_info; 
    2544 */ 
    25452549#else 
    25462550  to->refcount = emalloc(sizeof(*to->refcount));