Browse Source

removed display_errors ini setting; error_reporting

develop
Robin Thoni 8 years ago
parent
commit
760eb76edb
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/Utils/Controller/LuticateApplication.php

+ 3
- 1
src/Utils/Controller/LuticateApplication.php View File

@@ -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…
Cancel
Save