From 0d5abb88add74ad63e98109d3a108a2d1d303003 Mon Sep 17 00:00:00 2001 From: Thomas Lauria Date: Mon, 14 Jun 2021 17:07:01 +0200 Subject: [PATCH] Fix error handler for PHP8 usage E_ERROR: Uncaught ArgumentCountError: Too few arguments to function Zend_Session_Exception::handleSessionStartError(), 4 passed and exactly 5 expected in /home/tlauria/www/translate5-master/vendor/shardj/zf1-future/library/Zend/Session/Exception.php:56 --- packages/zend-session/library/Zend/Session/Exception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/zend-session/library/Zend/Session/Exception.php b/packages/zend-session/library/Zend/Session/Exception.php index 4aeaadae1..8fea2eaac 100644 --- a/packages/zend-session/library/Zend/Session/Exception.php +++ b/packages/zend-session/library/Zend/Session/Exception.php @@ -53,7 +53,7 @@ class Zend_Session_Exception extends Zend_Exception * @param string $errstr * @return void */ - static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext) + static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext = null) { self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; } @@ -66,7 +66,7 @@ static public function handleSessionStartError($errno, $errstr, $errfile, $errli * @param string $errstr * @return void */ - static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext) + static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext = null) { self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; }