]> granicus.if.org Git - php/commitdiff
don't show is_file() stat errors
authorTomas V.V.Cox <cox@php.net>
Sat, 11 Aug 2001 16:11:49 +0000 (16:11 +0000)
committerTomas V.V.Cox <cox@php.net>
Sat, 11 Aug 2001 16:11:49 +0000 (16:11 +0000)
pear/PEAR/Common.php

index 460e210838f455874a54761e4b5479f331c1ce61..d0e8bb0b759c69d1d29b5a9ad3185ec96bb6ecdd 100644 (file)
@@ -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;
     }