From 8d2009cfef344b830f5f0e9dfb570d1b1cb5884a Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 3 Mar 2014 14:11:55 +0100 Subject: [PATCH] Add error reporting setting Conflicts: tests/classes/PhraseanetTestCase.php --- tests/classes/PhraseanetPHPUnitAbstract.php | 1 + www/api.php | 2 ++ www/index.php | 2 ++ www/index_dev.php | 2 ++ 4 files changed, 7 insertions(+) diff --git a/tests/classes/PhraseanetPHPUnitAbstract.php b/tests/classes/PhraseanetPHPUnitAbstract.php index 17742b07e2..9233d1819e 100644 --- a/tests/classes/PhraseanetPHPUnitAbstract.php +++ b/tests/classes/PhraseanetPHPUnitAbstract.php @@ -109,6 +109,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase connection::close_connections(); + error_reporting(-1); \PHPUnit_Framework_Error_Warning::$enabled = true; \PHPUnit_Framework_Error_Notice::$enabled = true; diff --git a/www/api.php b/www/api.php index 733e9a37bd..f7b76c30f8 100644 --- a/www/api.php +++ b/www/api.php @@ -14,6 +14,8 @@ use Symfony\Component\Debug\ErrorHandler; require_once __DIR__ . '/../lib/autoload.php'; +error_reporting(0); + ErrorHandler::register(); $environment = Application::ENV_PROD; diff --git a/www/index.php b/www/index.php index d180062bb1..2d148ac4d9 100644 --- a/www/index.php +++ b/www/index.php @@ -14,6 +14,8 @@ use Symfony\Component\Debug\ErrorHandler; require_once __DIR__ . "/../lib/autoload.php"; +error_reporting(0); + ErrorHandler::register(); $environment = Application::ENV_PROD; diff --git a/www/index_dev.php b/www/index_dev.php index 4b0a0e17e4..eb5f8c5526 100644 --- a/www/index_dev.php +++ b/www/index_dev.php @@ -14,6 +14,8 @@ use Symfony\Component\Debug\ErrorHandler; require_once __DIR__ . "/../lib/autoload.php"; +error_reporting(-1); + ErrorHandler::register(); $environment = Application::ENV_DEV;