Changeset 429 for trunk


Ignore:
Timestamp:
2007-06-22T17:11:06+02:00 (8 years ago)
Author:
moo
Message:

refix #101, apache1 segv with non-zts php+XCache

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/xcache.c

    r425 r429  
    16611661        xc_cest_t tmp_cest; 
    16621662 
     1663        zend_hash_destroy(&XG(internal_function_table)); 
     1664        zend_hash_destroy(&XG(internal_class_table)); 
     1665 
    16631666        zend_hash_init_ex(&XG(internal_function_table), 100, NULL, CG(function_table)->pDestructor, 1, 0); 
     1667        zend_hash_init_ex(&XG(internal_class_table),    10,  NULL, CG(class_table)->pDestructor,    1, 0); 
     1668 
    16641669        zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func)); 
    1665  
    1666         zend_hash_init_ex(&XG(internal_class_table), 10, NULL, CG(class_table)->pDestructor, 1, 0); 
    16671670        zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest)); 
    16681671    } 
     
    17121715{ 
    17131716    memset(xcache_globals, 0, sizeof(zend_xcache_globals)); 
     1717 
     1718    zend_hash_init_ex(&xcache_globals->internal_function_table, 1, NULL, NULL, 1, 0); 
     1719    zend_hash_init_ex(&xcache_globals->internal_class_table,    1, NULL, NULL, 1, 0); 
     1720 
    17141721} 
    17151722/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.