From a138f612065b18fca162cd70250c8cfa4571a858 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 21 Nov 2018 16:46:01 +0800 Subject: [PATCH] Process/Php7.php --- Process/Php7.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Process/Php7.php b/Process/Php7.php index f55be907..66822bac 100644 --- a/Process/Php7.php +++ b/Process/Php7.php @@ -34,8 +34,6 @@ class Pman_Core_Process_Php7 extends Pman function scan($dir, $cls) { - - foreach (scandir(implode('/', $dir)) as $d) { if (!strlen($d) || $d[0] == '.') { @@ -43,12 +41,15 @@ class Pman_Core_Process_Php7 extends Pman } if (is_dir($d)) { - $nDir = array_merge($dir, array($d)); $this->scan(array_merge($dir, array($d)), array_merge($cls, array($d))); - return; + continue; } - echo "{$d}\n"; + if (!preg_match('/\.php$/', $d)) { + continue; + } + + } -- 2.39.2