Created
January 3, 2013 02:30
-
-
Save C-Duv/4440268 to your computer and use it in GitHub Desktop.
A fix proposal for ZF-12494 (http://framework.zend.com/issues/browse/ZF-12494).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Zend Framework 1.12.1/library/Zend/Session/Exception.php Thu Jan 05 21:35:02 2012 | |
+++ Zend Framework - Fixed/library/Zend/Session/Exception.php Thu Jan 03 03:17:37 2013 | |
@@ -55,7 +55,9 @@ | |
*/ | |
static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext) | |
{ | |
- self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; | |
+ if (error_reporting() !== 0) { | |
+ self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; | |
+ } | |
} | |
/** | |
@@ -68,7 +70,9 @@ | |
*/ | |
static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext) | |
{ | |
- self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; | |
+ if (error_reporting() !== 0) { | |
+ self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr; | |
+ } | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment