From d3986b49360b3a97640aa31b4e7869fd5f7ad313 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 5 Sep 2012 10:16:23 +0200 Subject: [PATCH] Fix: PHP 5.2 compatibility Conflicts: htdocs/filefunc.inc.php --- htdocs/filefunc.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 71a93240d34..9d482017f29 100755 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -54,6 +54,7 @@ if (! defined('LOG_DEBUG')) } // Force PHP error_reporting setup (Dolibarr may report warning without this) +if (! defined('E_DEPRECATED')) define('E_DEPRECATED',0); // For PHP < 5.3.0 compatibility error_reporting(E_ALL & ~(E_STRICT|E_NOTICE|E_DEPRECATED)); //error_reporting(E_ALL | E_STRICT); @@ -76,6 +77,7 @@ if (! $result && ! empty($_SERVER["GATEWAY_INTERFACE"])) // If install not do exit; } + // Disable php display errors if (! empty($dolibarr_main_prod)) {