From 83f102fd9ff797a6391002af7f595e53649f2a5e Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Wed, 6 Mar 2002 17:08:26 +0000 Subject: [PATCH] - Add function * and class * functionality. Only constants are left. function_table, (apply_func_t) zend_import_function, (void *) 1 TSRMLS_CC); + zend_function tmp_zend_function; + + zend_hash_copy(EG(function_table), &ce->function_table, (copy_ctor_func_t) function_add_ref, &tmp_zend_function, sizeof(zend_function)); } NEXT_OPCODE(); } @@ -1450,7 +1452,9 @@ binary_assign_op_addr: { } zend_class_add_ref(import_ce); } else { - //zend_hash_apply(&ce->function_table, (apply_func_t) zend_import_function, (void *) 1 TSRMLS_CC); + zend_class_entry tmp_zend_class_entry; + + zend_hash_copy(EG(class_table), &ce->class_table, (copy_ctor_func_t) zend_class_add_ref, &tmp_zend_class_entry, sizeof(zend_class_entry)); } NEXT_OPCODE(); -- 2.40.0