Changeset 435 for trunk/xcache.c
- Timestamp:
- 2007-06-30T07:17:52+02:00 (6 years ago)
- File:
-
- 1 edited
-
trunk/xcache.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r433 r435 1657 1657 int i; 1658 1658 1659 if ( XG(internal_function_table).nTableSize == 0) {1659 if (!XG(internal_table_copied)) { 1660 1660 zend_function tmp_func; 1661 1661 xc_cest_t tmp_cest; … … 1669 1669 zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func)); 1670 1670 zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest)); 1671 1672 XG(internal_table_copied) = 1; 1671 1673 } 1672 1674 if (xc_php_hcache.size && !XG(php_holds)) { … … 1718 1720 zend_hash_init_ex(&xcache_globals->internal_function_table, 1, NULL, NULL, 1, 0); 1719 1721 zend_hash_init_ex(&xcache_globals->internal_class_table, 1, NULL, NULL, 1, 0); 1720 1721 1722 } 1722 1723 /* }}} */ … … 1747 1748 } 1748 1749 1749 zend_hash_destroy(&xcache_globals->internal_function_table); 1750 zend_hash_destroy(&xcache_globals->internal_class_table); 1750 if (XG(internal_table_copied)) { 1751 zend_hash_destroy(&xcache_globals->internal_function_table); 1752 zend_hash_destroy(&xcache_globals->internal_class_table); 1753 } 1751 1754 } 1752 1755 /* }}} */
Note: See TracChangeset
for help on using the changeset viewer.

