Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM

From: Date: Tue, 28 Sep 2004 06:31:14 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM
References: 1 2 3  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3052@lists.php.net to get a copy of this message
On Mon, 27 Sep 2004, Andi Gutmans wrote: > Yep unless there's a bug :) Okay, so I can call it alright and overriding with: zend_opcode_handlers[ZEND_EXIT] = xdebug_exit_handler; works too, but I've some troubles getting my code to work that is handling the exit handler: zend_exit_handler(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU); That does no longer work, as it was renamed to ZEND_EXIT_HANDLER and made static. Nor can I copy and paste the old code: /* This is needed because of the Zend people breaking BC bigtime */ if (opline->op1.op_type != IS_UNUSED) { zval *ptr; ptr = get_zval_ptr(&opline->op1, EX(Ts), &EG(free_op1), BP_VAR_R); if (Z_TYPE_P(ptr) == IS_LONG) { EG(exit_status) = Z_LVAL_P(ptr); } else { zend_print_variable(ptr); } FREE_OP(EX(Ts), &opline->op1, EG(free_op1)); } zend_bailout(); NEXT_OPCODE(); Because opline doesn't exist anymore. Any advice? regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.zend-engine.cvs (#3052) next »