From c3545cb3aa77e1b4be02b9b1e37900476d9b0d82 Mon Sep 17 00:00:00 2001 From: Tim Jackson Date: Tue, 2 Jul 2024 05:12:42 +0200 Subject: [PATCH] Fix bug #27796: "Array to string" conversion warnings on installs/other actions --- PEAR/DependencyDB.php | 2 +- PEAR/Registry.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PEAR/DependencyDB.php b/PEAR/DependencyDB.php index a623e035e..a913b39a0 100644 --- a/PEAR/DependencyDB.php +++ b/PEAR/DependencyDB.php @@ -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 : "")); } diff --git a/PEAR/Registry.php b/PEAR/Registry.php index f67d79031..c7dd61bde 100644 --- a/PEAR/Registry.php +++ b/PEAR/Registry.php @@ -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); }