1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00

- Fix crash with unhandled exceptions

This commit is contained in:
Andi Gutmans
2001-12-08 20:58:20 +00:00
parent f026dae4f2
commit 8460372395

View File

@@ -817,7 +817,9 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
if (EG(active_op_array)) {
EG(return_value_ptr_ptr) = retval ? retval : &local_retval;
zend_execute(EG(active_op_array) TSRMLS_CC);
if (!retval) {
if (EG(exception)) {
zval_ptr_dtor(&EG(exception));
} else if (!retval) {
zval_ptr_dtor(EG(return_value_ptr_ptr));
local_retval = NULL;
}