Changeset 378 for branches/1.2/xcache.c
- Timestamp:
- 05/07/2007 05:21:35 PM (19 months ago)
- Location:
- branches/1.2
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2
- Property svnmerge-integrated changed from /trunk:1-302,371,374-375 to /trunk:1-302,344-346,371,374-375
-
branches/1.2/xcache.c
r377 r378 1023 1023 Bucket *b; 1024 1024 unsigned int i; 1025 unsigned int j; 1025 1026 1026 1027 #define COPY_H(vartype, var, cnt, name, datatype) do { \ 1027 for (i = 0 ; b; i ++, b = b->pListNext) {\1028 vartype *data = &php .var[i];\1028 for (i = 0, j = 0; b; i ++, b = b->pListNext) { \ 1029 vartype *data = &php->var[j]; \ 1029 1030 \ 1030 1031 if (i < old_##cnt) { \ 1031 1032 continue; \ 1032 1033 } \ 1034 j ++; \ 1033 1035 \ 1034 1036 assert(i < old_##cnt + php.cnt); \ … … 1443 1445 int i; 1444 1446 1447 if (XG(internal_function_table).nTableSize == 0) { 1448 zend_function tmp_func; 1449 xc_cest_t tmp_cest; 1450 1451 zend_hash_init_ex(&XG(internal_function_table), 100, NULL, NULL, 1, 0); 1452 zend_hash_copy(&XG(internal_function_table), CG(function_table), (copy_ctor_func_t) function_add_ref, &tmp_func, sizeof(tmp_func)); 1453 1454 zend_hash_init_ex(&XG(internal_class_table), 10, NULL, NULL, 1, 0); 1455 zend_hash_copy(&XG(internal_class_table), CG(class_table), (copy_ctor_func_t) xc_zend_class_add_ref, &tmp_cest, sizeof(tmp_cest)); 1456 } 1445 1457 if (xc_php_hcache.size && !XG(php_holds)) { 1446 1458 XG(php_holds) = calloc(xc_php_hcache.size, sizeof(xc_stack_t)); … … 1516 1528 xcache_globals->var_holds = NULL; 1517 1529 } 1530 1531 zend_hash_destroy(&xcache_globals->internal_function_table); 1532 zend_hash_destroy(&xcache_globals->internal_class_table); 1518 1533 } 1519 1534 /* }}} */

