summaryrefslogtreecommitdiff
path: root/pear/PEAR/Registry.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-03-23 10:18:32 +0000
committerStig Bakken <ssb@php.net>2002-03-23 10:18:32 +0000
commitb5604d18dc38f4a45562f1e5082e86df468f1f8c (patch)
tree6465065916cd77c5ce36ec03622e018fb0c929dc /pear/PEAR/Registry.php
parented16ccb27599c03c293c62f6bc0573b2c79066e7 (diff)
downloadphp-git-b5604d18dc38f4a45562f1e5082e86df468f1f8c.tar.gz
* _lock() calls _assertStateDir()
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");