Index: branches/RC/core/kernel/application.php
===================================================================
diff -u -N -r11336 -r11346
--- branches/RC/core/kernel/application.php (.../application.php) (revision 11336)
+++ branches/RC/core/kernel/application.php (.../application.php) (revision 11346)
@@ -11,8 +11,6 @@
* which returns an instance of the application. The method gurantees that it will return exactly the same instance for any call.
* See singleton pattern by GOF.
* @package kernel4
-*
-* Test
*/
class kApplication {
@@ -2366,7 +2364,8 @@
fclose($fp);
}
- if( !$this->errorHandlers ) {
+ if (!$this->errorHandlers || (defined('DEBUG_MODE') && DEBUG_MODE && defined('DBG_SKIP_REPORTING') && DBG_SKIP_REPORTING)) {
+ // when debugger absent OR it's present, but we actually can't see it's error report (e.g. during ajax request)
if ($errno == E_USER_ERROR) {
header('HTTP/1.0 500 Script Fatal Error');
echo ('