Commit:    2032470e4113dfbf04a1ed3b12de85ffcde6f367
Author:    Anatoliy Belsky <a...@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)


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to