From: Tomas V.V.Cox Date: Sat, 11 Aug 2001 16:11:49 +0000 (+0000) Subject: don't show is_file() stat errors X-Git-Tag: BEFORE_EXP_MERGE~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ca706e8abe3ccc178d046f2271c1c85cdde08e4;p=php don't show is_file() stat errors --- 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; }