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';
12 class Pman_Core_Process_Php7 extends Pman
15 static $cli_desc = "Tests for PHP compatibilty, by including files...";
16 static $cli_opts = array();
21 if (empty($this->bootLoader->cli)) {
27 function get($base, $opts = array())
30 $this->scan($this->rootDir, 'Pman');
33 function scan($p,$pr, $path=false) {
37 $full_path = array($p,$pr);
38 $class_path = array();
39 if ($path !== false) {
40 $full_path= array_merge($full_path, $path);
41 $class_path = array_merge($class_path, $path);
43 //print_r("CHKDIR: ". implode('/', $full_path)."\n");
45 foreach(scandir(implode('/', $full_path)) as $d) {
47 if (!strlen($d) || $d[0] == '.') {
57 //print_r("CHK: " . implode('/', $chk)."\n");
58 // is it a file.. and .PHP...
59 if (!is_dir(implode('/', $chk))) {
60 if (!preg_match('/\.php$/',$d)) {
63 $clp[] = preg_replace('/\.php$/','', $d);
65 //print_r("CLP: " . implode('/', $clp)."\n");
66 require_once "Pman/". implode('/', $clp ). '.php';
70 // otherwise recurse...
71 //print_r("RECURSE: " . implode('/', $clp)."\n");
73 $this->scan($p,$pr, $clp);