diff options
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) { |