summaryrefslogtreecommitdiff
path: root/pear/PEAR/Registry.php
diff options
context:
space:
mode:
Diffstat (limited to 'pear/PEAR/Registry.php')
-rw-r--r--pear/PEAR/Registry.php3
1 files changed, 3 insertions, 0 deletions
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");