]> granicus.if.org Git - php/commitdiff
* Nuke warning when $php_errormsg is not set.
authorMartin Jansen <mj@php.net>
Fri, 4 Oct 2002 20:00:51 +0000 (20:00 +0000)
committerMartin Jansen <mj@php.net>
Fri, 4 Oct 2002 20:00:51 +0000 (20:00 +0000)
pear/PEAR/Registry.php

index 780c3b4dddb4b26bb935b9d4c1f0b7a6a985ed5a..efa6eb8271697ffec454e78180478912d1d32bcf 100644 (file)
@@ -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) {