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.
12 class Pman_Core_Php7 extends Pman
15 static $cli_desc = "Tests for PHP compatibilty, by including files...";
21 if (empty($this->cli)) {
32 function scan($p,$pr, $path=false) {
36 $full_path = array($p,$pr);
37 $class_path = array();
38 if ($path !== false) {
39 $full_path= array_merge($full_path, $path);
40 $class_path = array_merge($class_path, $path);
42 //print_r("CHKDIR: ". implode('/', $full_path)."\n");
44 foreach(scandir(implode('/', $full_path)) as $d) {
46 if (!strlen($d) || $d[0] == '.') {
56 //print_r("CHK: " . implode('/', $chk)."\n");
57 // is it a file.. and .PHP...
58 if (!is_dir(implode('/', $chk))) {
59 if (!preg_match('/\.php$/',$d)) {
62 $clp[] = preg_replace('/\.php$/','', $d);
64 //print_r("CLP: " . implode('/', $clp)."\n");
65 var_dump(implode('/', $clp ));
69 // otherwise recurse...
70 //print_r("RECURSE: " . implode('/', $clp)."\n");
72 $this->scan($p,$pr, $clp);