mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Disabled mandatory override of default PHP error handler to E_ALL when in dev mode (which means you have no way of overriding error_reporting() in your _config.php, and by that no way of disabling e.g. E_NOTICE level errors)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60636 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
8b3056fcd0
commit
be2d56e7d7
2
main.php
2
main.php
@ -95,10 +95,12 @@ require_once('core/control/Director.php');
|
|||||||
require_once('filesystem/Filesystem.php');
|
require_once('filesystem/Filesystem.php');
|
||||||
require_once("core/Session.php");
|
require_once("core/Session.php");
|
||||||
|
|
||||||
|
/*
|
||||||
// If this is a dev site, enable php error reporting
|
// If this is a dev site, enable php error reporting
|
||||||
if (Director::isDev()) {
|
if (Director::isDev()) {
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
Session::start();
|
Session::start();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user