From: Dmitry Stogov Date: Wed, 18 Nov 2015 21:47:08 +0000 (+0300) Subject: Don't keep wrong jump target in last CATCH. X-Git-Tag: php-7.1.0alpha1~712 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84610b1f3904069f6fc0754c807a3f5cd58a4010;p=php Don't keep wrong jump target in last CATCH. --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 092c7af466..40bdc9ffd0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -4371,7 +4371,9 @@ void zend_compile_try(zend_ast *ast) /* {{{ */ } opline = &CG(active_op_array)->opcodes[opnum_catch]; - opline->extended_value = get_next_op_number(CG(active_op_array)); + if (!is_last_catch) { + opline->extended_value = get_next_op_number(CG(active_op_array)); + } } for (i = 0; i < catches->children; ++i) {