diff options
author | Dmitry Stogov <dmitry@zend.com> | 2016-10-18 14:48:01 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2016-10-18 14:48:01 +0300 |
commit | 6558559bcc1cd24e3639e4a215e9d546ee05fc48 (patch) | |
tree | e9e153cb4f4f1d03f04b32b33d66ccc50519f499 /Zend/zend_execute_API.c | |
parent | 86e603a664afdc3a12ead0eaca5d37fa8a379381 (diff) | |
download | php-git-6558559bcc1cd24e3639e4a215e9d546ee05fc48.tar.gz |
Fixed bug #73337 (try/catch not working with two exceptions inside a same operation)
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 7eeece37d0..bf754d25df 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -826,7 +826,10 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS if (EG(active_op_array)->fn_flags & ZEND_ACC_GENERATOR) { *fci->retval_ptr_ptr = zend_generator_create_zval(EG(active_op_array) TSRMLS_CC); } else { + const zend_op *current_opline_before_exception = EG(opline_before_exception); + zend_execute(EG(active_op_array) TSRMLS_CC); + EG(opline_before_exception) = current_opline_before_exception; } if (!fci->symbol_table && EG(active_symbol_table)) { |