From b5604d18dc38f4a45562f1e5082e86df468f1f8c Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sat, 23 Mar 2002 10:18:32 +0000 Subject: [PATCH] * _lock() calls _assertStateDir() --- pear/PEAR/Registry.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index 26ea6e1667..f43a35411e 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -210,6 +210,9 @@ 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; + } $this->lock_fp = @fopen($this->lockfile, 'w'); if (!is_resource($this->lock_fp)) { return $this->raiseError("could not create lock file: $php_errormsg"); -- 2.50.1