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 // $this->scan($this->rootDir, 'Pman');
29 // $this->scan($this->rootDir);
31 foreach (scandir($this->rootDir) as $d) {
38 $full_path = array($p, $pr);
39 $class_path = array();
40 if ($path !== false) {
41 $full_path = array_merge($full_path, $path);
42 $class_path = array_merge($class_path, $path);
44 //print_r("CHKDIR: ". implode('/', $full_path)."\n");
46 foreach (scandir(implode('/', $full_path)) as $d) {
48 if (!strlen($d) || $d[0] == '.') {
58 //print_r("CHK: " . implode('/', $chk)."\n");
59 // is it a file.. and .PHP...
60 if (!is_dir(implode('/', $chk))) {
61 if (!preg_match('/\.php$/', $d)) {
64 $clp[] = preg_replace('/\.php$/', '', $d);
66 //print_r("CLP: " . implode('/', $clp)."\n");
67 require_once "Pman/" . implode('/', $clp) . '.php';
71 // otherwise recurse...
72 //print_r("RECURSE: " . implode('/', $clp)."\n");
74 $this->scan($p, $pr, $clp);
78 // function scan($p, $pr, $path = false)
80 // $full_path = array($p, $pr);
81 // $class_path = array();
82 // if ($path !== false) {
83 // $full_path = array_merge($full_path, $path);
84 // $class_path = array_merge($class_path, $path);
86 // //print_r("CHKDIR: ". implode('/', $full_path)."\n");
88 // foreach (scandir(implode('/', $full_path)) as $d) {
90 // if (!strlen($d) || $d[0] == '.') {
96 // $clp = $class_path;
100 // //print_r("CHK: " . implode('/', $chk)."\n");
101 // // is it a file.. and .PHP...
102 // if (!is_dir(implode('/', $chk))) {
103 // if (!preg_match('/\.php$/', $d)) {
106 // $clp[] = preg_replace('/\.php$/', '', $d);
108 // //print_r("CLP: " . implode('/', $clp)."\n");
109 // require_once "Pman/" . implode('/', $clp) . '.php';
113 // // otherwise recurse...
114 // //print_r("RECURSE: " . implode('/', $clp)."\n");
116 // $this->scan($p, $pr, $clp);