Changeset 504 in svn for trunk/utils.c


Ignore:
Timestamp:
2008-01-05T03:42:14Z (8 years ago)
Author:
Xuefer
Message:

PHP_6: updated support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/utils.c

    r500 r504  
    584584#endif
    585585
    586 void xc_zend_class_add_ref(zend_class_entry ZESW(*ce, **ce))
    587 {
    588 #ifdef ZEND_ENGINE_2
    589     (*ce)->refcount++;
    590 #else
    591     (*ce->refcount)++;
    592 #endif
    593 }
    594 
    595586xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /* {{{ */
    596587{
     
    635626    {
    636627        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));
    638629    }
    639630    TG(internal_function_tail) = TG(function_table).pListTail;
     
    644635    {
    645636        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));
    647638    }
    648639#endif
Note: See TracChangeset for help on using the changeset viewer.