cvs: Zend / zend_execute_API.c

From: Date: Sat, 07 Sep 2002 14:10:43 +0000
Subject: cvs: Zend / zend_execute_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-406@lists.php.net to get a copy of this message
thies Sat Sep 7 10:10:43 2002 EDT Modified files: /Zend zend_execute_API.c Log: call_user_function_ex now also supports the zend_execute_internal hook. Index: Zend/zend_execute_API.c diff -u Zend/zend_execute_API.c:1.146 Zend/zend_execute_API.c:1.147 --- Zend/zend_execute_API.c:1.146 Tue Sep 3 10:42:04 2002 +++ Zend/zend_execute_API.c Sat Sep 7 10:10:43 2002 @@ -548,9 +548,23 @@ EG(unary_op) = orig_unary_op; EG(binary_op) = orig_binary_op; } else { + zend_op temp_op; ALLOC_INIT_ZVAL(*retval_ptr_ptr); - ((zend_internal_function *) EX(function_state).function)->handler(param_count, *retval_ptr_ptr, (object_pp?*object_pp:NULL), 1 TSRMLS_CC); + temp_op.extended_value = param_count; + temp_op.result.u.var = 0; + temp_op.lineno = 0; + + EX(opline) = &temp_op; + EX(Ts) = (temp_variable *) do_alloca(sizeof(temp_variable)*1); + EX(Ts)[EX(opline)->result.u.var].var.ptr = *retval_ptr_ptr; + + if (!zend_execute_internal) { + ((zend_internal_function *) EX(function_state).function)->handler(EX(opline)->extended_value, EX(Ts)[EX(opline)->result.u.var].var.ptr, EX(object).ptr, 1 TSRMLS_CC); + } else { + zend_execute_internal(&execute_data, 1 TSRMLS_CC); + } INIT_PZVAL(*retval_ptr_ptr); + free_alloca(EX(Ts)); } zend_ptr_stack_clear_multiple(TSRMLS_C); EG(function_state_ptr) = original_function_state_ptr;

« previous php.zend-engine.cvs (#406) next »