RE: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it
| From: | John Coggeshall | Date: | Wed, 05 Mar 2003 23:18:25 +0000 |
| Subject: | RE: [PHP-DEV] Doing something with an each opcode as zend_execute() handles it | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94825@lists.php.net to get a copy of this message | ||
>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_OPCODE_HANDLER_ARGS) {
fprintf(stderr, "we hooked fetch_r\n");
return
zend_do_fetch_r_handler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
}
Is all you'd need.
John