Skip to content

Commit

Permalink
Merge pull request #141 from timjackson/fix-error-get-last
Browse files Browse the repository at this point in the history
Fix bug #27796: "Array to string" conversion warnings on installs/other actions
  • Loading branch information
ashnazg authored Nov 24, 2024
2 parents 7d088a4 + c3545cb commit 9ae078e
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 9ae078e

Please sign in to comment.