cvs: ZendEngine2 / zend_compile.c

From: Date: Tue, 03 Feb 2004 14:31:07 +0000
Subject: cvs: ZendEngine2 / zend_compile.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2302@lists.php.net to get a copy of this message
zeev Tue Feb 3 09:31:07 2004 EDT Modified files: /ZendEngine2 zend_compile.c Log: Remove redundant code http://cvs.php.net/diff.php/ZendEngine2/zend_compile.c?r1=1.526&r2=1.527&ty=u Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.526 ZendEngine2/zend_compile.c:1.527 --- ZendEngine2/zend_compile.c:1.526 Tue Feb 3 07:36:13 2004 +++ ZendEngine2/zend_compile.c Tue Feb 3 09:31:07 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.526 2004/02/03 12:36:13 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.527 2004/02/03 14:31:07 zeev Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1574,26 +1574,6 @@ try_token->u.opline_num = zend_add_try_element(get_next_op_number(CG(active_op_array)) TSRMLS_CC); } -static void throw_list_applier(long *opline_num, long *catch_opline) -{ - zend_op *opline; - TSRMLS_FETCH(); /* Pass this by argument */ - - opline = &CG(active_op_array)->opcodes[*opline_num]; - - /* Backpatch the opline of the catch statement */ - switch (opline->opcode) { - case ZEND_DO_FCALL: - case ZEND_DO_FCALL_BY_NAME: - case ZEND_THROW: - case ZEND_CLONE: - opline->op2.u.opline_num = *catch_opline; - break; - default: - zend_error(E_COMPILE_ERROR, "Bad opcode in throw list"); - break; - } -} void zend_do_begin_catch(znode *try_token, znode *catch_class, znode *catch_var, zend_bool first_catch TSRMLS_DC) {

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