Changeset 428 for branches/1.2/xcache.c


Ignore:
Timestamp:
2007-06-22T17:09:46+02:00 (7 years ago)
Author:
moo
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/xcache.c

    r423 r428  
    14681468        xc_cest_t tmp_cest; 
    14691469 
     1470        zend_hash_destroy(&XG(internal_function_table)); 
     1471        zend_hash_destroy(&XG(internal_class_table)); 
     1472 
    14701473        zend_hash_init_ex(&XG(internal_function_table), 100, NULL, CG(function_table)->pDestructor, 1, 0); 
     1474        zend_hash_init_ex(&XG(internal_class_table),    10,  NULL, CG(class_table)->pDestructor,    1, 0); 
     1475 
    14711476        zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func)); 
    1472  
    1473         zend_hash_init_ex(&XG(internal_class_table), 10, NULL, CG(class_table)->pDestructor, 1, 0); 
    14741477        zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest)); 
    14751478    } 
     
    15191522{ 
    15201523    memset(xcache_globals, 0, sizeof(zend_xcache_globals)); 
     1524 
     1525    zend_hash_init_ex(&xcache_globals->internal_function_table, 1, NULL, NULL, 1, 0); 
     1526    zend_hash_init_ex(&xcache_globals->internal_class_table,    1, NULL, NULL, 1, 0); 
     1527 
    15211528} 
    15221529/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.