]> granicus.if.org Git - php/commitdiff
Forgot to return... not that I understand this stuff...
authorSteph Fox <sfox@php.net>
Thu, 28 Feb 2008 01:16:43 +0000 (01:16 +0000)
committerSteph Fox <sfox@php.net>
Thu, 28 Feb 2008 01:16:43 +0000 (01:16 +0000)
ext/phar/phar_object.c

index 8c23751bbcf17f521e3f1fa02f1c27ccdfefa4f6..a306984d319cab41713dac731e8b3da43c8cb9fd 100755 (executable)
@@ -1824,8 +1824,9 @@ PHP_METHOD(Phar, convertToZip)
 // need to check that the string isn't Phar::GZ etc
        if (ext_len) {
                if (strncmp(ext, "Phar::GZ", 8) || strncmp(ext, "Phar::BZ2", 9)) {
-               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC,
-                       "Cannot compress a zip-based archive with gz or bz2");
+                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC,
+                               "Cannot compress a zip-based archive with gz or bz2");
+                       return;
                }
        }