Skip to content

Commit

Permalink
Merge pull request #153 from MittagQI/master
Browse files Browse the repository at this point in the history
Fix PHP 8 session error issue
  • Loading branch information
Shardj authored Jun 21, 2021
2 parents ae1a6d3 + e0f0221 commit 1e7989d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Session/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 1e7989d

Please sign in to comment.