浏览代码

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();

正在加载...
取消
保存