summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jansen <mj@php.net>2002-10-04 20:00:51 +0000
committerMartin Jansen <mj@php.net>2002-10-04 20:00:51 +0000
commit1fe42e10b7ec02da9a16c478f28e1992e5685f0a (patch)
treedb07a764d987802487fd5cfd6b14c7cdca347baa
parentbfd2a857b2919ed77810abbf200e96eaa1cbc857 (diff)
downloadphp-git-1fe42e10b7ec02da9a16c478f28e1992e5685f0a.tar.gz
* Nuke warning when $php_errormsg is not set.
-rw-r--r--pear/PEAR/Registry.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php
index 780c3b4ddd..efa6eb8271 100644
--- a/pear/PEAR/Registry.php
+++ b/pear/PEAR/Registry.php
@@ -276,7 +276,8 @@ class PEAR_Registry extends PEAR
@ini_restore('track_errors');
if (!is_resource($this->lock_fp)) {
- return $this->raiseError("could not create lock file: $php_errormsg");
+ return $this->raiseError("could not create lock file" .
+ (isset($php_errormsg) ? ": " . $php_errormsg : ""));
}
if (!(int)flock($this->lock_fp, $mode)) {
switch ($mode) {