cvs: php4 /pear/PEAR Common.php

From: Date: Wed, 18 Jul 2001 17:11:28 +0000
Subject: cvs: php4 /pear/PEAR Common.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-295@lists.php.net to get a copy of this message
cox Wed Jul 18 13:11:28 2001 EDT Modified files: /php4/pear/PEAR Common.php Log: killed some warnings Index: php4/pear/PEAR/Common.php diff -u php4/pear/PEAR/Common.php:1.4 php4/pear/PEAR/Common.php:1.5 --- php4/pear/PEAR/Common.php:1.4 Tue Jul 17 15:13:40 2001 +++ php4/pear/PEAR/Common.php Wed Jul 18 13:11:28 2001 @@ -57,9 +57,9 @@ 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 @@ } while ($newdir = array_shift($dirstack)) { if (mkdir($newdir, 0777)) { - $this->log(2, "created dir $newdir"); + $this->log(2, "+ created dir $newdir"); } else { return false; }

« previous php.pear.cvs (#295) next »