Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_execute_API.c

From: Date: Sat, 07 Sep 2002 17:39:57 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_execute_API.c
References: 1 2  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-408@lists.php.net to get a copy of this message
On Sat, Sep 07, 2002 at 08:32:19PM +0300, Andi Gutmans wrote: > 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? it will, i'm just digging thru it and i'm hoping to make it more efficient for ZE2. as we don't want "bigger" changes in ZE1 i've just implemented it so that it works with very small cuts. so stay tuned... re, tc > > Andi > > At 02:10 PM 9/7/2002 +0000, Thies C. Arntzen wrote: > >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; > > > > > > > >-- > >Zend Engine CVS Mailing List (http://cvs.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > Zend Engine CVS Mailing List (http://cvs.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Thies C. Arntzen - Looking for all sorts of freelance work - just ask.. Whishlist: http://www.amazon.de/exec/obidos/wishlist/AB9DY62QWDSZ

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