diff options
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c index 14f86b0ad1..b0400463f0 100644 --- a/main/main.c +++ b/main/main.c @@ -2522,7 +2522,9 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file) } zend_end_try(); if (EG(exception)) { - zend_exception_error(EG(exception), E_ERROR); + zend_try { + zend_exception_error(EG(exception), E_ERROR); + } zend_end_try(); } #if HAVE_BROKEN_GETCWD |