File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,23 @@ opcache.file_cache={PWD}
7
7
opcache.file_cache_only=1
8
8
--FILE--
9
9
<?php
10
- foreach (glob (__DIR__ . '/*/ ' . __DIR__ . '/*.bin ' ) as $ p ) {
10
+ if (substr (PHP_OS , 0 , 3 ) !== 'WIN ' ) {
11
+ $ pattern = __DIR__ . '/*/ ' . __DIR__ . '/*78185.php.bin ' ;
12
+ } else {
13
+ $ pattern = __DIR__ . '/*/*/ ' . str_replace (': ' , '' , __DIR__ ) . '/*78185.php.bin ' ;
14
+ }
15
+ foreach (glob ($ pattern ) as $ p ) {
11
16
var_dump ($ p );
12
17
}
13
18
?>
14
19
--CLEAN--
15
20
<?php
16
- foreach (glob (__DIR__ . '/*/ ' . __DIR__ . '/*.bin ' ) as $ p ) {
21
+ if (substr (PHP_OS , 0 , 3 ) !== 'WIN ' ) {
22
+ $ pattern = __DIR__ . '/*/ ' . __DIR__ . '/*78185.php.bin ' ;
23
+ } else {
24
+ $ pattern = __DIR__ . '/*/*/ ' . str_replace (': ' , '' , __DIR__ ) . '/*78185.php.bin ' ;
25
+ }
26
+ foreach (glob ($ pattern ) as $ p ) {
17
27
unlink ($ p );
18
28
$ p = dirname ($ p );
19
29
while (strlen ($ p ) > strlen (__DIR__ )) {
You can’t perform that action at this time.
0 commit comments