Changeset 344 for trunk/xcache.c
- Timestamp:
- 02/04/2007 06:22:14 AM (22 months ago)
- Files:
-
- 1 modified
-
trunk/xcache.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache.c
r341 r344 1025 1025 Bucket *b; 1026 1026 unsigned int i; 1027 unsigned int j; 1027 1028 1028 1029 #define COPY_H(vartype, var, cnt, name, datatype) do { \ 1029 for (i = 0 ; b; i ++, b = b->pListNext) {\1030 vartype *data = &php->var[ i]; \1030 for (i = 0, j = 0; b; i ++, b = b->pListNext) { \ 1031 vartype *data = &php->var[j]; \ 1031 1032 \ 1032 1033 if (i < old_##cnt) { \ 1033 1034 continue; \ 1034 1035 } \ 1036 j ++; \ 1035 1037 \ 1036 1038 assert(i < old_##cnt + php->cnt); \ … … 1603 1605 int i; 1604 1606 1607 if (XG(internal_function_table).nTableSize == 0) { 1608 zend_function tmp_func; 1609 xc_cest_t tmp_cest; 1610 1611 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)); 1613 1614 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)); 1616 } 1605 1617 if (xc_php_hcache.size && !XG(php_holds)) { 1606 1618 XG(php_holds) = calloc(xc_php_hcache.size, sizeof(xc_stack_t)); … … 1676 1688 xcache_globals->var_holds = NULL; 1677 1689 } 1690 1691 zend_hash_destroy(&xcache_globals->internal_function_table); 1692 zend_hash_destroy(&xcache_globals->internal_class_table); 1678 1693 } 1679 1694 /* }}} */

