Changeset 437 for branches/1.2/xcache.c
- Timestamp:
- 2007-06-30T07:33:30+02:00 (6 years ago)
- Location:
- branches/1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2
-
branches/1.2/xcache.c
r432 r437 1464 1464 int i; 1465 1465 1466 if ( XG(internal_function_table).nTableSize == 0) {1466 if (!XG(internal_table_copied)) { 1467 1467 zend_function tmp_func; 1468 1468 xc_cest_t tmp_cest; … … 1476 1476 zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func)); 1477 1477 zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest)); 1478 1479 XG(internal_table_copied) = 1; 1478 1480 } 1479 1481 if (xc_php_hcache.size && !XG(php_holds)) { … … 1525 1527 zend_hash_init_ex(&xcache_globals->internal_function_table, 1, NULL, NULL, 1, 0); 1526 1528 zend_hash_init_ex(&xcache_globals->internal_class_table, 1, NULL, NULL, 1, 0); 1527 1528 1529 } 1529 1530 /* }}} */ … … 1554 1555 } 1555 1556 1556 zend_hash_destroy(&xcache_globals->internal_function_table); 1557 zend_hash_destroy(&xcache_globals->internal_class_table); 1557 if (XG(internal_table_copied)) { 1558 zend_hash_destroy(&xcache_globals->internal_function_table); 1559 zend_hash_destroy(&xcache_globals->internal_class_table); 1560 } 1558 1561 } 1559 1562 /* }}} */
Note: See TracChangeset
for help on using the changeset viewer.

