Fixed access to wrong opline (it may be the last ZEND_THROW in op_array->opcodes)

This commit is contained in:
Dmitry Stogov 2015-05-20 22:49:37 +03:00
parent 5ea429494e
commit e57aceed42

View file

@ -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;
}