From: Greg Beaver Date: Wed, 16 Apr 2008 19:47:41 +0000 (+0000) Subject: make test OS-agnostic X-Git-Tag: RELEASE_2_0_0b1~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bc9ec5466f91b1289a412af6c8afe6985052940;p=php make test OS-agnostic --- 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);