From 9ca706e8abe3ccc178d046f2271c1c85cdde08e4 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Sat, 11 Aug 2001 16:11:49 +0000 Subject: don't show is_file() stat errors --- pear/PEAR/Common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index 460e210838..d0e8bb0b75 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -255,7 +255,7 @@ class PEAR_Common extends PEAR function infoFromDescriptionFile($descfile) { - if (!is_file($descfile) || !is_readable($descfile) || + if (!@is_file($descfile) || !is_readable($descfile) || (!$fp = @fopen($descfile, 'r'))) { return $this->raiseError("Unable to open $descfile"); } @@ -291,6 +291,7 @@ class PEAR_Common extends PEAR $this->pkginfo[$k] = trim($v); } $this->pkginfo['filelist'] = &$this->filelist; + //print_r($this->pkginfo);exit; return $this->pkginfo; } -- cgit v1.2.1