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

From: Date: Tue, 01 Oct 2002 20:14:40 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: Zend / zend_execute.c zend_execute.h
References: 1 2 3 4 5  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-468@lists.php.net to get a copy of this message
On Tue, 1 Oct 2002, Andi Gutmans wrote: > At 06:07 PM 10/1/2002 +0200, Thies C. Arntzen wrote: > > > > you do hook into zend_execute_internal, but you still need to > > be able to perform call the "real-thing", which is > > execute_internal in this case. i modelled it after the > > zend_execute and execute naming you choose in the 1st place. > > Wouldn't you normally "stack" the calls and save the current > zend_execute_internal in an internal variable and then override > zend_execute_internal with a function which runs your code and calls the > saved old one? > I don't think moving it to execute_API is necessary. If I remember correctly Thies did it like this that so that it would safe a function call if this mechanism isn't used. If you do it like you proposed you always call zend_execute_internal, wich Thies' implementation you only do that if it is requested. Derick -- --------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ ---------------------------------------------------------------------------

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