Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_execute_API.c
| From: | Andi Gutmans | Date: | Sat, 07 Sep 2002 17:32:19 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_execute_API.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-407@lists.php.net to get a copy of this message | ||
Thies,
Is there any reason you're not merging your patches to the ZendEngine2 CVS? I think this whole execute_internal hook can be there too. No?
Andi
At 02:10 PM 9/7/2002 +0000, Thies C. Arntzen wrote:
thies Sat Sep 7 10:10:43 2002 EDTModified files:/Zend zend_execute_API.cLog: 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;-- Zend Engine CVS Mailing List (http://cvs.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php