cvs: php-src(PHP_5_3) /ext/phar/tests opendir_edgecases.phpt
| From: | Greg Beaver | Date: | Sat, 30 Aug 2008 23:12:56 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/phar/tests opendir_edgecases.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-52794@lists.php.net to get a copy of this message | ||
cellog Sat Aug 30 23:12:56 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/phar/tests opendir_edgecases.phpt
Log:
fix OS-dependent order in test
http://cvs.php.net/viewvc.cgi/php-src/ext/phar/tests/opendir_edgecases.phpt?r1=1.2.2.1&r2=1.2.2.2&diff_format=u
Index: php-src/ext/phar/tests/opendir_edgecases.phpt
diff -u php-src/ext/phar/tests/opendir_edgecases.phpt:1.2.2.1
php-src/ext/phar/tests/opendir_edgecases.phpt:1.2.2.2
--- php-src/ext/phar/tests/opendir_edgecases.phpt:1.2.2.1 Fri Aug 1 13:38:47 2008
+++ php-src/ext/phar/tests/opendir_edgecases.phpt Sat Aug 30 23:12:56 2008
@@ -19,7 +19,12 @@
$a = opendir('poo');
+$arr = array();
while (false !== ($b = readdir($a))) {
+ $arr[] = $b;
+}
+sort($arr);
+foreach ($arr as $b) {
echo "$b\n";
}