From fb487bc38d92ef4938fb15f6b1e337e818cbcec5 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Mon, 8 Oct 2001 03:31:14 +0000 Subject: [PATCH] detect and report error --- pear/PEAR/Common.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.50.1