]> granicus.if.org Git - php/commitdiff
killed some warnings
authorTomas V.V.Cox <cox@php.net>
Wed, 18 Jul 2001 17:11:28 +0000 (17:11 +0000)
committerTomas V.V.Cox <cox@php.net>
Wed, 18 Jul 2001 17:11:28 +0000 (17:11 +0000)
pear/PEAR/Common.php

index f8fbfde2d18f10e05faf01a53061c1c333fae9ae..50d37e3aeff2c36b4efac80093cbd8dbe6b01484 100644 (file)
@@ -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;
             }