cvs: php4 /pear/PEAR Common.php
| From: | Thomas V.V.Cox | Date: | Sun, 10 Feb 2002 17:23:04 +0000 |
| Subject: | cvs: php4 /pear/PEAR Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2360@lists.php.net to get a copy of this message | ||
cox Sun Feb 10 12:23:04 2002 EDT
Modified files:
/php4/pear/PEAR Common.php
Log:
Now System will return false on fail
Index: php4/pear/PEAR/Common.php
diff -u php4/pear/PEAR/Common.php:1.31 php4/pear/PEAR/Common.php:1.32
--- php4/pear/PEAR/Common.php:1.31 Wed Jan 30 07:18:10 2002
+++ php4/pear/PEAR/Common.php Sun Feb 10 12:23:04 2002
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.31 2002/01/30 12:18:10 ssb Exp $
+// $Id: Common.php,v 1.32 2002/02/10 17:23:04 cox Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -123,9 +123,8 @@
function mkTempDir()
{
- $tmpdir = System::mktemp('-d pear');
- if (PEAR::isError($tmpdir)) {
- return $tmpdir;
+ if (!$tmpdir = System::mktemp('-d pear')) {
+ return false;
}
$this->addTempFile($tmpdir);
return $tmpdir;