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())
31 function scan($route = array())
33 $dir = $this->rootDir . "/" . implode("/", $route);
35 echo "Looking for {$dir}\n";
37 foreach (scandir($dir) as $d) {
39 if (!strlen($d) || $d[0] == '.') {
44 $this->scan(array_merge($route, array($d)));
48 if (!preg_match('/\.php$/', $d)) {
53 require_once implode('/', $route) . "/" . $d;
54 } catch(Exception $e) {
55 echo "Message : " . $e->getMessage();
56 echo "Code : " . $e->getCode();
65 // function scan($p, $pr, $path = false)
67 // $full_path = array($p, $pr);
68 // $class_path = array();
69 // if ($path !== false) {
70 // $full_path = array_merge($full_path, $path);
71 // $class_path = array_merge($class_path, $path);
73 // //print_r("CHKDIR: ". implode('/', $full_path)."\n");
75 // foreach (scandir(implode('/', $full_path)) as $d) {
77 // if (!strlen($d) || $d[0] == '.') {
83 // $clp = $class_path;
87 // //print_r("CHK: " . implode('/', $chk)."\n");
88 // // is it a file.. and .PHP...
89 // if (!is_dir(implode('/', $chk))) {
90 // if (!preg_match('/\.php$/', $d)) {
93 // $clp[] = preg_replace('/\.php$/', '', $d);
95 // //print_r("CLP: " . implode('/', $clp)."\n");
96 // require_once "Pman/" . implode('/', $clp) . '.php';
100 // // otherwise recurse...
101 // //print_r("RECURSE: " . implode('/', $clp)."\n");
103 // $this->scan($p, $pr, $clp);