projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0d2362
)
Process/Php7.php
author
Edward
<edward@roojs.com>
Wed, 21 Nov 2018 08:46:01 +0000
(16:46 +0800)
committer
Edward
<edward@roojs.com>
Wed, 21 Nov 2018 08:46:01 +0000
(16:46 +0800)
Process/Php7.php
patch
|
blob
|
history
diff --git
a/Process/Php7.php
b/Process/Php7.php
index
f55be90
..
66822ba
100644
(file)
--- 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;
+ }
+
+
}