com php-src: fixed #62433 test for win: ext/spl/tests/bug62433.phpt

From: Date: Mon, 09 Jul 2012 10:42:10 +0000
Subject: com php-src: fixed #62433 test for win: ext/spl/tests/bug62433.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-69546@lists.php.net to get a copy of this message
Commit: 2032470e4113dfbf04a1ed3b12de85ffcde6f367 Author: Anatoliy Belsky <ab@php.net> Mon, 9 Jul 2012 12:42:10 +0200 Parents: 4323a7acedf0eff76f709456930d89380c16f0b8 Branches: PHP-5.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2032470e4113dfbf04a1ed3b12de85ffcde6f367 Log: fixed #62433 test for win Bugs: https://bugs.php.net/62433 Changed paths: M ext/spl/tests/bug62433.phpt Diff: diff --git a/ext/spl/tests/bug62433.phpt b/ext/spl/tests/bug62433.phpt index 86b5df8..bfb3568 100644 --- a/ext/spl/tests/bug62433.phpt +++ b/ext/spl/tests/bug62433.phpt @@ -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)

« previous php.cvs (#69546) next »