Skip to content

Commit

Permalink
Fix bug #27796: "Array to string" conversion warnings on installs/oth…
Browse files Browse the repository at this point in the history
…er actions
  • Loading branch information
timjackson committed Jul 2, 2024
1 parent 6f4c3a0 commit c3545cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PEAR/DependencyDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ function _lock($mode = LOCK_EX)
}

if (!is_resource($this->_lockFp)) {
$last_errormsg = error_get_last();
$last_errormsg = error_get_last()["message"];
return PEAR::raiseError("could not create Dependency lock file" .
(isset($last_errormsg) ? ": " . $last_errormsg : ""));
}
Expand Down
2 changes: 1 addition & 1 deletion PEAR/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ function _readFileMap()

$fp = @fopen($this->filemap, 'r');
if (!$fp) {
$last_errormsg = error_get_last();
$last_errormsg = error_get_last()["message"];
return $this->raiseError('PEAR_Registry: could not open filemap "' . $this->filemap . '"', PEAR_REGISTRY_ERROR_FILE, null, null, $last_errormsg);
}

Expand Down

0 comments on commit c3545cb

Please sign in to comment.