Bug #5418 - Suppressing all PHP 5.3 deprecation messages for "Test Server" system mode.

skala
Ivan Tcholakov 16 years ago
parent fe918166cc
commit cbadc3fc5c
  1. 4
      main/inc/global.inc.php

@ -251,7 +251,11 @@ if (api_get_setting('server_type') == 'test') {
- only do addslashes on $_GET and $_POST
--------------------------------------------
*/
if (IS_PHP_53) {
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
} else {
error_reporting(E_ALL & ~E_NOTICE);
}
//error_reporting(E_ALL);
//Addslashes to all $_GET variables

Loading…
Cancel
Save