Process/Php7.php
[Pman.Core] / Process / Php7.php
index 833e2f1..b61c3e2 100644 (file)
@@ -22,15 +22,18 @@ class Pman_Core_Process_Php7 extends Pman
             die("CLI only");
         }
     }
-
-    function exception_error_handler($errno, $errstr, $errfile, $errline ) 
-    {
-        throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
-    }
-
+    
     function get($base, $opts = array()) 
     {
-        set_error_handler("exception_error_handler");
+        set_error_handler(function ($errno, $errstr, $errfile, $errline ){
+//            throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
+            print_r(array(
+                $errno,
+                $errstr,
+                $errfile,
+                $errline
+            ));
+        });
         
         $this->scan();
     }
@@ -56,12 +59,16 @@ class Pman_Core_Process_Php7 extends Pman
                 continue;
             }
             
+            if($d == 'Php7.php'){
+                continue;
+            }
+            var_dump($d);
 //            require_once implode('/', $route) . "/" . $d;
             
             try {
                 require_once implode('/', $route) . "/" . $d;
             } catch (ErrorException $ex) {
-                echo "Unable to load configuration file.";
+                echo $ex->getMessage() . "\n";
             }
             
         }