]> granicus.if.org Git - php/commitdiff
make test OS-agnostic
authorGreg Beaver <cellog@php.net>
Wed, 16 Apr 2008 19:47:41 +0000 (19:47 +0000)
committerGreg Beaver <cellog@php.net>
Wed, 16 Apr 2008 19:47:41 +0000 (19:47 +0000)
ext/phar/tests/027.phpt

index ca7cad26b911bde15c9d1c16e300bd02dc73656e..8aa470e589d7116e458780406edc931333ef0b38 100755 (executable)
@@ -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);