com php-src: Fixed access to wrong opline (it may be the last ZEND_THROW in op_array->opcodes): Zend/zend_e xceptions.c
| From: | Dmitry Stogov | Date: | Wed, 20 May 2015 19:49:37 +0000 |
| Subject: | com php-src: Fixed access to wrong opline (it may be the last ZEND_THROW in op_array->opcodes): Zend/zend_e xceptions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86831@lists.php.net to get a copy of this message | ||
Commit: e57aceed424db0b57e8e68d434cb7d624d99de27
Author: Dmitry Stogov <dmitry@zend.com> Wed, 20 May 2015 22:49:37 +0300
Parents: 5ea429494e5937ae8bc1819d8bc572282b7d4098
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e57aceed424db0b57e8e68d434cb7d624d99de27
Log:
Fixed access to wrong opline (it may be the last ZEND_THROW in op_array->opcodes)
Changed paths:
M Zend/zend_exceptions.c
Diff:
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 023836e..e8c0706 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;
}