Re: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it
[email protected] (Sterling Hughes) Wed, 5 Mar 2003 17:34:46 -0500
| Newsgroups | php.dev |
|---|---|
| Message-ID | <[email protected]> |
> Just before zend_execute()/execute() handles each opcode in its big switch()
> statement, I'd like to be able to call a function and pass it the opcode (or
> other information from the opline.
>
> Is the best approach to reset zend_execute to a new function in the
> PHP_MINIT_FUNCTION() (and restore the saved value in
> PHP_MSHUTDOWN_FUNCTION)? This new function would mostly be a copy of
> execute() in zend_execute.c with my addtional function call tossed in.
>
> What's the difference between zend_execute() and zend_execute_internal()?
>
Well, I have a feeling what you are talking about is sub-optimal, what
do you want to do?
-Sterling
> Thanks,
> David
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--
"Reductionists like to take things apart. The rest of us are
just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition