改名
This commit is contained in:
@@ -130,9 +130,8 @@ class ServerInotify extends Process
|
|||||||
if ($ev['mask'] == IN_IGNORED || !in_array($ev['mask'], $eventList)) {
|
if ($ev['mask'] == IN_IGNORED || !in_array($ev['mask'], $eventList)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$fileType = strstr($ev['name'], '.');
|
|
||||||
//非重启类型
|
//非重启类型
|
||||||
if ($fileType !== '.php') {
|
if (strstr($ev['name'], '.') !== '.php') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,7 +211,7 @@ class ServerInotify extends Process
|
|||||||
|
|
||||||
$files = scandir($dir);
|
$files = scandir($dir);
|
||||||
foreach ($files as $f) {
|
foreach ($files as $f) {
|
||||||
if ($f == '.' || $f == '..' || $f == 'runtime' || !preg_match('/\.php$/', $f)) {
|
if ($f == '.' || $f == '..' || $f == 'runtime' || !preg_match('/.*\.php/', $f)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$path = $dir . '/' . $f;
|
$path = $dir . '/' . $f;
|
||||||
|
|||||||
Reference in New Issue
Block a user