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); }