Re: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it

[email protected] (George Schlossnagle) Wed, 5 Mar 2003 18:09:34 -0500
Newsgroups php.dev
Message-ID <[email protected]>
> Essentially, I want to be able to produce a sort of serialized
> representation of the opcodes, but as they are executed, not all in 
> one big
> chunk after they are compiled.
>
> This isn't for any actually useful production code, just some
> debugging/messing around/exploring engine internals.
>

There's no good way to do this as a zend_extension in ZE1 (that I know 
of).  You need to patch the engine (which is trivial).