|
|
|
@ -542,8 +542,6 @@ void xc_zend_class_add_ref(zend_class_entry ZESW(*ce, **ce))
|
|
|
|
|
xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /* {{{ */
|
|
|
|
|
{
|
|
|
|
|
HashTable *h;
|
|
|
|
|
zend_function tmp_func;
|
|
|
|
|
xc_cest_t tmp_cest;
|
|
|
|
|
|
|
|
|
|
if (sandbox) {
|
|
|
|
|
memset(sandbox, 0, sizeof(sandbox[0]));
|
|
|
|
@ -581,12 +579,20 @@ xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /
|
|
|
|
|
#endif
|
|
|
|
|
h = OG(function_table);
|
|
|
|
|
zend_hash_init_ex(&TG(function_table), 128, NULL, h->pDestructor, h->persistent, h->bApplyProtection);
|
|
|
|
|
zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func));
|
|
|
|
|
{
|
|
|
|
|
zend_function tmp_func;
|
|
|
|
|
zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func));
|
|
|
|
|
}
|
|
|
|
|
TG(internal_class_tail) = TG(function_table).pListTail;
|
|
|
|
|
|
|
|
|
|
h = OG(class_table);
|
|
|
|
|
zend_hash_init_ex(&TG(class_table), 16, NULL, h->pDestructor, h->persistent, h->bApplyProtection);
|
|
|
|
|
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));
|
|
|
|
|
#if 0 && TODO
|
|
|
|
|
{
|
|
|
|
|
xc_cest_t tmp_cest;
|
|
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
TG(internal_class_tail) = TG(class_table).pListTail;
|
|
|
|
|
|
|
|
|
|
#ifdef ZEND_ENGINE_2_1
|
|
|
|
|