Skip to content

Commit 1fe42e1

Browse files
committed
* Nuke warning when $php_errormsg is not set.
1 parent bfd2a85 commit 1fe42e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pear/PEAR/Registry.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ function _lock($mode = LOCK_EX)
276276
@ini_restore('track_errors');
277277

278278
if (!is_resource($this->lock_fp)) {
279-
return $this->raiseError("could not create lock file: $php_errormsg");
279+
return $this->raiseError("could not create lock file" .
280+
(isset($php_errormsg) ? ": " . $php_errormsg : ""));
280281
}
281282
if (!(int)flock($this->lock_fp, $mode)) {
282283
switch ($mode) {

0 commit comments

Comments
 (0)