瀏覽代碼

removed display_errors ini setting; error_reporting

develop
Robin Thoni 8 年之前
父節點
當前提交
760eb76edb
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      src/Utils/Controller/LuticateApplication.php

+ 3
- 1
src/Utils/Controller/LuticateApplication.php 查看文件

@@ -37,7 +37,9 @@ class LuticateApplication implements MessageComponentInterface
37 37
      */
38 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 43
         $this->_config = $configuration;
42 44
         $this->_clients = new \SplObjectStorage;
43 45
         $this->_router = new LuRoute();

Loading…
取消
儲存