Changeset 504 for trunk/utils.c
- Timestamp:
- 01/05/2008 03:42:14 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/utils.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r500 r504 584 584 #endif 585 585 586 void xc_zend_class_add_ref(zend_class_entry ZESW(*ce, **ce))587 {588 #ifdef ZEND_ENGINE_2589 (*ce)->refcount++;590 #else591 (*ce->refcount)++;592 #endif593 }594 595 586 xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /* {{{ */ 596 587 { … … 635 626 { 636 627 zend_function tmp_func; 637 zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func));628 zend_hash_copy(&TG(function_table), &XG(internal_function_table), NULL, (void *) &tmp_func, sizeof(tmp_func)); 638 629 } 639 630 TG(internal_function_tail) = TG(function_table).pListTail; … … 644 635 { 645 636 xc_cest_t tmp_cest; 646 zend_hash_copy(&TG(class_table), &XG(internal_class_table), (copy_ctor_func_t) xc_zend_class_add_ref, (void *) &tmp_cest, sizeof(tmp_cest));637 zend_hash_copy(&TG(class_table), &XG(internal_class_table), NULL, (void *) &tmp_cest, sizeof(tmp_cest)); 647 638 } 648 639 #endif

