Changes error_reporting parameter acording to tip in php manual.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 7 Dec 2010 12:05:57 +0000 (12:05 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 7 Dec 2010 12:05:57 +0000 (12:05 +0000)
config.default.php

index eca0db7b5f3e0882baa0aad7348fcd2ea9ffaf54..692c87b5ba30d7355fa07da29371133a420821c2 100644 (file)
@@ -20,8 +20,6 @@
 
 if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
        die("Restricted access");
-       if (!defined('E_STRICT'))
-               define('E_STRICT', 2048);       // for php4
        // Log file for error/warning messages. Should be set to any location
        // writable by www server. When set to empty string logging is switched off. 
        // Special value 'syslog' can be used for system logger usage (see php manual).
@@ -41,7 +39,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_
        $select_trail   = 0; // track also SELECT queries
        if ($go_debug > 0)
        {
-               error_reporting(E_ALL&E_STRICT);
+               error_reporting(-1);
                ini_set("display_errors", "On");
        }
        else