Changeset 346


Ignore:
Timestamp:
2007-02-04T10:55:47+01:00 (8 years ago)
Author:
moo
Message:

disable copying internal class temporarily

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r345 r346  
    543543{ 
    544544    HashTable *h; 
    545     zend_function tmp_func; 
    546     xc_cest_t tmp_cest; 
    547545 
    548546    if (sandbox) { 
     
    582580    h = OG(function_table); 
    583581    zend_hash_init_ex(&TG(function_table), 128, NULL, h->pDestructor, h->persistent, h->bApplyProtection); 
    584     zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func)); 
     582    { 
     583        zend_function tmp_func; 
     584        zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func)); 
     585    } 
    585586    TG(internal_class_tail) = TG(function_table).pListTail; 
    586587 
    587588    h = OG(class_table); 
    588589    zend_hash_init_ex(&TG(class_table),     16, NULL, h->pDestructor, h->persistent, h->bApplyProtection); 
    589     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)); 
     590#if 0 && TODO 
     591    { 
     592        xc_cest_t tmp_cest; 
     593        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)); 
     594    } 
     595#endif 
    590596    TG(internal_class_tail) = TG(class_table).pListTail; 
    591597 
Note: See TracChangeset for help on using the changeset viewer.