From e57aceed424db0b57e8e68d434cb7d624d99de27 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 20 May 2015 22:49:37 +0300 Subject: [PATCH] Fixed access to wrong opline (it may be the last ZEND_THROW in op_array->opcodes) --- Zend/zend_exceptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 023836e4f1..e8c0706cf0 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -125,7 +125,7 @@ ZEND_API void zend_throw_exception_internal(zval *exception) /* {{{ */ if (!EG(current_execute_data)->func || !ZEND_USER_CODE(EG(current_execute_data)->func->common.type) || - (EG(current_execute_data)->opline+1)->opcode == ZEND_HANDLE_EXCEPTION) { + EG(current_execute_data)->opline->opcode == ZEND_HANDLE_EXCEPTION) { /* no need to rethrow the exception */ return; } -- 2.40.0