mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
fixed #62433 test for win
This commit is contained in:
parent
4323a7aced
commit
2032470e41
@ -5,11 +5,11 @@ Bug #62433 Inconsistent behavior of RecursiveDirectoryIterator to dot files (. a
|
||||
$dots = array_keys(iterator_to_array(new RecursiveDirectoryIterator(__DIR__)));
|
||||
$ndots = array_keys(iterator_to_array(new RecursiveDirectoryIterator(__DIR__, FilesystemIterator::SKIP_DOTS)));
|
||||
|
||||
var_dump(in_array(__DIR__ . '/.', $dots));
|
||||
var_dump(in_array(__DIR__ . '/..', $dots));
|
||||
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $dots));
|
||||
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $dots));
|
||||
|
||||
var_dump(in_array(__DIR__ . '/.', $ndots));
|
||||
var_dump(in_array(__DIR__ . '/..', $ndots));
|
||||
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $ndots));
|
||||
var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $ndots));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
|
Loading…
Reference in New Issue
Block a user