]> granicus.if.org Git - php/commitdiff
Fixed phar file action failure after engine exception rfc been merged
authorReeze Xia <reeze@php.net>
Mon, 9 Mar 2015 17:07:18 +0000 (17:07 +0000)
committerReeze Xia <reeze@php.net>
Mon, 9 Mar 2015 17:07:18 +0000 (17:07 +0000)
ext/phar/phar_object.c

index 69bda4bab3e5f8022e291c7af4b53895666e0300..b05ba5982fd4dc976df420cfee7352978482ccce 100644 (file)
@@ -298,6 +298,10 @@ static int phar_file_action(phar_archive_data *phar, phar_entry_info *info, char
                                        efree(name);
                                } zend_end_try();
 
+                               if (EG(exception)) {
+                                       zend_exception_error(EG(exception), E_ERROR);
+                               }
+
                                zend_bailout();
                        }