From a69b1db72bc665eb2bbb83aa4cbdb19b847da3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20Rosen=C3=B6gger?= Date: Mon, 1 Feb 2016 20:04:53 +0100 Subject: [PATCH] hide notices With PHP 7.0 Maysqldumper showed way to many notices. This changes the error_reporting level so notices are not shown anymore. --- inc/runtime.php | 2 +- refresh_dblist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/runtime.php b/inc/runtime.php index b6037a5..5be7c70 100644 --- a/inc/runtime.php +++ b/inc/runtime.php @@ -1,7 +1,7 @@ = 0) { - error_reporting(E_ALL & ~E_DEPRECATED); + error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE); } if (function_exists("date_default_timezone_set")) date_default_timezone_set(@date_default_timezone_get()); diff --git a/refresh_dblist.php b/refresh_dblist.php index 1882628..e12bf77 100644 --- a/refresh_dblist.php +++ b/refresh_dblist.php @@ -4,7 +4,7 @@ * * Add configuration file names to array $excludedConfigurationFiles to skip configurations. */ -error_reporting(E_ALL ^ ~E_NOTICE); +error_reporting(E_ALL & ~E_NOTICE); $verbose = true; /** * Build exclude array with configuration files that should be skipped