From: Tomas V.V.Cox Date: Sat, 23 Mar 2002 18:36:52 +0000 (+0000) Subject: The System class was modified to always return true or false instead X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b217ed97119c493acb76f118864a55d23ee9b3fb;p=php The System class was modified to always return true or false instead of PEAR Errors. Changed then assertStateDir() to check for false. --- diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index f43a35411e..9167464cf3 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -210,8 +210,8 @@ class PEAR_Registry extends PEAR // XXX does not check type of lock (LOCK_SH/LOCK_EX) return true; } - if (PEAR::isError($err = $this->_assertStateDir())) { - return $err; + if (!@$this->_assertStateDir()) { + return $this->raiseError("could not create directory '{$this->statedir}'"); } $this->lock_fp = @fopen($this->lockfile, 'w'); if (!is_resource($this->lock_fp)) {