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