diff options
| author | Tomas V.V.Cox <cox@php.net> | 2001-07-18 17:11:28 +0000 |
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2001-07-18 17:11:28 +0000 |
| commit | 073f9ec70f03eb974861798dba897d3d36429bd8 (patch) | |
| tree | bdca30bb211493ee9024eedc4cadb2fc42452ca3 | |
| parent | f0c879bb26f788ca823a090ed345da7b8031cd81 (diff) | |
| download | php-git-073f9ec70f03eb974861798dba897d3d36429bd8.tar.gz | |
killed some warnings
| -rw-r--r-- | pear/PEAR/Common.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
