From 8bc9ec5466f91b1289a412af6c8afe6985052940 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Wed, 16 Apr 2008 19:47:41 +0000 Subject: [PATCH] make test OS-agnostic --- ext/phar/tests/027.phpt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/phar/tests/027.phpt b/ext/phar/tests/027.phpt index ca7cad26b9..8aa470e589 100755 --- a/ext/phar/tests/027.phpt +++ b/ext/phar/tests/027.phpt @@ -60,7 +60,12 @@ file_put_contents($a . '/test1.txt', 'hi'); file_put_contents($a . '/test2.txt', 'hi'); file_put_contents($a . '/test3.txt', 'hi'); $b = opendir('phar://test.phar/'); +$z = array(); while (false !== ($c = readdir($b))) { + $z[] = $c; +} +sort($z); +foreach ($z as $c) { echo "$c\n"; } closedir($b); -- 2.50.1