瀏覽代碼

If platform is in test mode show all warnings.

Julio Montoya 10 年之前
父節點
當前提交
eb87a3ccc6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      main/inc/global.inc.php

+ 3 - 1
main/inc/global.inc.php

@@ -318,7 +318,9 @@ if (file_exists($mail_conf)) {
 }
 
 if (api_get_setting('server_type') == 'test') {
-    error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
+    ini_set('display_errors', '1');
+    ini_set('log_errors', '1');
+    error_reporting(-1);
 } else {
     /*
     Server type is not test