Changeset 345 for trunk/xcache.c


Ignore:
Timestamp:
2007-02-04T09:15:00+01:00 (8 years ago)
Author:
moo
Message:

copy function/class table correctly by using add_ref

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r344 r345  
    16101610 
    16111611        zend_hash_init_ex(&XG(internal_function_table), 100, NULL, NULL, 1, 0); 
    1612         zend_hash_copy(&XG(internal_function_table), CG(function_table), NULL, &tmp_func, sizeof(tmp_func)); 
     1612        zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func)); 
    16131613 
    16141614        zend_hash_init_ex(&XG(internal_class_table), 10, NULL, NULL, 1, 0); 
    1615         zend_hash_copy(&XG(internal_class_table), CG(class_table), NULL, &tmp_cest, sizeof(tmp_cest)); 
     1615        zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest)); 
    16161616    } 
    16171617    if (xc_php_hcache.size && !XG(php_holds)) { 
Note: See TracChangeset for help on using the changeset viewer.