From: Tomas V.V.Cox Date: Mon, 8 Oct 2001 03:31:14 +0000 (+0000) Subject: detect and report error X-Git-Tag: PRE_PARAMETER_PARSING_API~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb487bc38d92ef4938fb15f6b1e337e818cbcec5;p=php detect and report error --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index e78f98a71e..a93631877b 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -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;