diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-11-04 03:33:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 03:33:03 +0300 |
commit | 9bc49289f8348ec5cfbc4430237d54fcf55517b4 (patch) | |
tree | 0fa60500eca77651093a859b3143705eab16d047 /libs | |
parent | b048ae17d60372f6ab950197db9624a43ed62b72 (diff) |
Fix zend session hides actual error when there are two or more errors… (#15095)
* Fix zend session hides actual error when there are two or more errors/notices/warnings
Need to append each warning.
* Adding a space to separate errors.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/Zend/Session/Exception.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/Zend/Session/Exception.php b/libs/Zend/Session/Exception.php index 7152792aab..734e2c45f9 100644 --- a/libs/Zend/Session/Exception.php +++ b/libs/Zend/Session/Exception.php @@ -55,7 +55,10 @@ class Zend_Session_Exception extends Zend_Exception */ static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext) { - self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; + if (!isset(self::$sessionStartError)) { + self::$sessionStartError = ''; + } + self::$sessionStartError .= $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr . ' '; } /** |