Changeset 705 for trunk/utils.c
- Timestamp:
- 03/19/2011 03:33:02 PM (2 years ago)
- Files:
-
- 1 modified
-
trunk/utils.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/utils.c
r682 r705 649 649 } 650 650 /* }}} */ 651 void xc_free_zend_constant(zend_constant *c) /* {{{ */651 static void xc_free_zend_constant(zend_constant *c) /* {{{ */ 652 652 { 653 653 if (!(c->flags & CONST_PERSISTENT)) { … … 702 702 zend_hash_init_ex(&TG(zend_constants), 20, NULL, (dtor_func_t) xc_free_zend_constant, h->persistent, h->bApplyProtection); 703 703 xc_copy_internal_zend_constants(&TG(zend_constants), &XG(internal_constant_table)); 704 {705 zend_constant tmp_const;706 zend_hash_copy(&TG(zend_constants), &XG(internal_constant_table), (copy_ctor_func_t) xc_zend_constant_ctor, (void *) &tmp_const, sizeof(tmp_const));707 }708 704 TG(internal_constant_tail) = TG(zend_constants).pListTail; 709 705 #endif … … 775 771 776 772 #ifdef HAVE_XCACHE_CONSTANT 773 for (b = TG(zend_constants).pListHead; b != NULL && b != TG(internal_constant_tail); b = b->pListNext) { 774 zend_constant *c = (zend_constant*) b->pData; 775 xc_free_zend_constant(c); 776 } 777 777 778 b = TG(internal_constant_tail) ? TG(internal_constant_tail)->pListNext : TG(zend_constants).pListHead; 778 779 /* install constants */

