cvs: php4 /pear/PEAR Common.php

From: Date: Mon, 08 Oct 2001 03:31:15 +0000
Subject: cvs: php4 /pear/PEAR Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-954@lists.php.net to get a copy of this message
cox Sun Oct 7 23:31:15 2001 EDT Modified files: /php4/pear/PEAR Common.php Log: detect and report error Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.14 php4/pear/PEAR/Common.php:1.15 --- php4/pear/PEAR/Common.php:1.14 Sun Oct 7 16:14:11 2001 +++ php4/pear/PEAR/Common.php Sun Oct 7 23:31:14 2001 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.14 2001/10/07 20:14:11 cox Exp $ +// $Id: Common.php,v 1.15 2001/10/08 03:31:14 cox Exp $ require_once 'PEAR.php'; require_once 'Archive/Tar.php'; @@ -386,7 +386,9 @@ $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;

« previous php.pear.cvs (#954) next »