From: Tomas V.V.Cox Date: Wed, 18 Jul 2001 17:11:28 +0000 (+0000) Subject: killed some warnings X-Git-Tag: PRE_TSRM_MERGE_PATCH~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=073f9ec70f03eb974861798dba897d3d36429bd8;p=php killed some warnings --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index f8fbfde2d1..50d37e3aef 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -57,9 +57,9 @@ class PEAR_Common extends PEAR while (is_array($this->_tempfiles) && $file = array_shift($this->_tempfiles)) { - if (is_dir($file)) { + if (@is_dir($file)) { system("rm -rf $file"); // XXX FIXME Windows - } else { + } elseif (file_exists($file)) { unlink($file); } } @@ -85,7 +85,7 @@ class PEAR_Common extends PEAR } while ($newdir = array_shift($dirstack)) { if (mkdir($newdir, 0777)) { - $this->log(2, "created dir $newdir"); + $this->log(2, "+ created dir $newdir"); } else { return false; }