>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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to