ソースを参照

removed display_errors ini setting; error_reporting

develop
Robin Thoni 9年前
コミット
760eb76edb
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      src/Utils/Controller/LuticateApplication.php

+ 3
- 1
src/Utils/Controller/LuticateApplication.php ファイルの表示

37
      */
37
      */
38
     public function __construct($configuration)
38
     public function __construct($configuration)
39
     {
39
     {
40
-        ini_set("display_errors", "stderr");
40
+        if (php_sapi_name() != "cli") {
41
+            error_reporting(0);
42
+        }
41
         $this->_config = $configuration;
43
         $this->_config = $configuration;
42
         $this->_clients = new \SplObjectStorage;
44
         $this->_clients = new \SplObjectStorage;
43
         $this->_router = new LuRoute();
45
         $this->_router = new LuRoute();

読み込み中…
キャンセル
保存