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

Loading…
Cancel
Save