]> granicus.if.org Git - php/commitdiff
detect and report error
authorTomas V.V.Cox <cox@php.net>
Mon, 8 Oct 2001 03:31:14 +0000 (03:31 +0000)
committerTomas V.V.Cox <cox@php.net>
Mon, 8 Oct 2001 03:31:14 +0000 (03:31 +0000)
pear/PEAR/Common.php

index e78f98a71ecfadf460a5a348ee28835fe3051661..a93631877b2219a10dff931ab0ebc05549495cf0 100644 (file)
@@ -386,7 +386,9 @@ class PEAR_Common extends PEAR
         $xml = $pkgdir . DIRECTORY_SEPARATOR . 'package.xml';
 
         $tar = new Archive_Tar($file, true);
-        $tar->extractList($xml);
+        if (!$tar->extractList($xml)) {
+            return $this->raiseError('could not extract the package.xml file');
+        }
         $info = $this->infoFromDescriptionFile($xml);
         unlink($xml);
         return $info;