5 * PHP7 produces all sorts of pointless warnings... this attempts to just include all the files,
6 * so that you can view them..??
8 * would be nice to write the code to fix them.
11 require_once 'Pman.php';
13 class Pman_Core_Process_Php7 extends Pman
16 static $cli_desc = "Tests for PHP compatibilty, by including files...";
17 static $cli_opts = array();
21 if (empty($this->bootLoader->cli)) {
26 function get($base, $opts = array())
28 set_error_handler(function ($errno, $errstr, $errfile, $errline ){
29 // throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
38 $this->scan(array("Pman"));
39 $this->scan(array($this->bootLoader->project));
44 function scan($route = array())
46 $dir = $this->rootDir . "/" . implode("/", $route);
48 foreach (scandir($dir) as $d) {
50 if (!strlen($d) || $d[0] == '.') {
54 if (is_dir("{$dir}/{$d}")) {
55 $this->scan(array_merge($route, array($d)));
59 if (!preg_match('/\.php$/', $d)) {
65 require_once implode('/', $route) . "/" . $d;
67 } catch (ErrorException $ex) {
68 echo $ex->getMessage() . "\n";