Changeset 344 for trunk/utils.c
- Timestamp:
- 02/04/2007 06:22:14 AM (22 months ago)
- Files:
-
- 1 modified
-
trunk/utils.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r305 r344 1 1 2 2 #include "xcache.h" 3 #include "stack.h" 4 #include "xcache_globals.h" 3 5 #include "utils.h" 4 6 #ifdef ZEND_ENGINE_2_1 … … 531 533 { 532 534 HashTable *h; 535 zend_function tmp_func; 536 xc_cest_t tmp_cest; 537 533 538 if (sandbox) { 534 539 memset(sandbox, 0, sizeof(sandbox[0])); … … 567 572 h = OG(function_table); 568 573 zend_hash_init_ex(&TG(function_table), 128, NULL, h->pDestructor, h->persistent, h->bApplyProtection); 574 zend_hash_copy(&TG(function_table), &XG(internal_function_table), NULL, (void *) &tmp_func, sizeof(tmp_func)); 575 TG(internal_class_tail) = TG(function_table).pListTail; 576 569 577 h = OG(class_table); 570 578 zend_hash_init_ex(&TG(class_table), 16, NULL, h->pDestructor, h->persistent, h->bApplyProtection); 579 zend_hash_copy(&TG(class_table), &XG(internal_class_table), NULL, (void *) &tmp_cest, sizeof(tmp_cest)); 580 TG(internal_class_tail) = TG(class_table).pListTail; 581 571 582 #ifdef ZEND_ENGINE_2_1 572 583 /* shallow copy, don't destruct */ … … 613 624 #endif 614 625 615 b = TG( function_table).pListHead;626 b = TG(internal_function_tail) ? TG(internal_function_tail)->pListNext : TG(function_table).pListHead; 616 627 /* install function */ 617 628 while (b != NULL) { … … 622 633 } 623 634 624 b = TG( class_table).pListHead;635 b = TG(internal_class_tail) ? TG(internal_class_tail)->pListNext : TG(class_table).pListHead; 625 636 /* install class */ 626 637 while (b != NULL) {

