diff options
author | Martin Jansen <mj@php.net> | 2002-10-04 20:00:51 +0000 |
---|---|---|
committer | Martin Jansen <mj@php.net> | 2002-10-04 20:00:51 +0000 |
commit | 1fe42e10b7ec02da9a16c478f28e1992e5685f0a (patch) | |
tree | db07a764d987802487fd5cfd6b14c7cdca347baa /pear/PEAR/Registry.php | |
parent | bfd2a857b2919ed77810abbf200e96eaa1cbc857 (diff) | |
download | php-git-1fe42e10b7ec02da9a16c478f28e1992e5685f0a.tar.gz |
* Nuke warning when $php_errormsg is not set.
Diffstat (limited to 'pear/PEAR/Registry.php')
-rw-r--r-- | pear/PEAR/Registry.php | 3 |
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) { |