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

2003-03-05 Thread John Coggeshall
>Such as overriding the opcode handlers for each opcode? I >suppose I could change what the handlers are initialized to in >zend_init_opcodes_handler() so that my new handler does the >serialization and then calls the regular handler. Does that make sense? Yep Int my_do_fetch_r_handler(ZEND_O

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

2003-03-05 Thread David Sklar
On Wednesday, March 05, 2003 5:46 PM, Sterling Hughes wrote: >> 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,

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

2003-03-05 Thread John Coggeshall
e: [PHP-DEV] Doing something with an each opcode as >zend_execute() handles it > > >> 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. >> &g

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

2003-03-05 Thread George Schlossnagle
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 g

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

2003-03-05 Thread Sterling Hughes
> On Wednesday, March 05, 2003 5:35 PM, Sterling Hughes wrote: > > >> 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 approac

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

2003-03-05 Thread David Sklar
On Wednesday, March 05, 2003 5:35 PM, Sterling Hughes wrote: >> 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 zen

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

2003-03-05 Thread Sterling Hughes
> 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 res