Changeset 651 for trunk/utils.c

Show
Ignore:
Timestamp:
07/20/2009 07:24:38 AM (4 years ago)
Author:
moo
Message:

make use of internal_constant_tail otherwise 1.3 will cache unwanted constants

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r648 r651  
    704704        zend_hash_copy(&TG(zend_constants), &XG(internal_constant_table), (copy_ctor_func_t) xc_zend_constant_ctor, (void *) &tmp_const, sizeof(tmp_const)); 
    705705    } 
     706    TG(internal_constant_tail) = TG(zend_constants).pListTail; 
    706707#endif 
    707708    h = OG(function_table); 
     
    772773 
    773774#ifdef HAVE_XCACHE_CONSTANT 
    774     b = /*TG(internal_constant_tail) ? TG(internal_constant_tail)->pListNext :*/ TG(zend_constants).pListHead; 
     775    b = TG(internal_constant_tail) ? TG(internal_constant_tail)->pListNext : TG(zend_constants).pListHead; 
    775776    /* install constants */ 
    776777    while (b != NULL) {