diff --git a/ext/phar/tests/cache_list/files/write5.phar b/ext/phar/tests/cache_list/files/write5.phar index b3a318b5a2e..52635b41ac3 100644 Binary files a/ext/phar/tests/cache_list/files/write5.phar and b/ext/phar/tests/cache_list/files/write5.phar differ diff --git a/ext/phar/tests/cache_list/files/write5.phar.inc b/ext/phar/tests/cache_list/files/write5.phar.inc index 04a4dfe18d7..5e7b9bb8862 100644 --- a/ext/phar/tests/cache_list/files/write5.phar.inc +++ b/ext/phar/tests/cache_list/files/write5.phar.inc @@ -10,13 +10,15 @@ $d = dirname(__FILE__) . "/copyonwrite5"; mkdir($d); file_put_contents($d . "/file1", "file1\n"); file_put_contents($d . "/file2", "file2\n"); -var_dump($phar->buildFromDirectory($d)); +$arr = $phar->buildFromDirectory($d); +ksort($arr); +var_dump($arr); $phar2 = new Phar(__FILE__); $arr = array(); foreach ($phar2 as $name => $file) { $arr[$name] = $file->getContent(); } -asort($arr); +ksort($arr); foreach ($arr as $name => $content) { echo $name, " ", $content; } diff --git a/ext/phar/tests/cache_list/files/write6.phar b/ext/phar/tests/cache_list/files/write6.phar index 8aa92131e64..e3e4341c679 100644 Binary files a/ext/phar/tests/cache_list/files/write6.phar and b/ext/phar/tests/cache_list/files/write6.phar differ diff --git a/ext/phar/tests/cache_list/files/write6.phar.inc b/ext/phar/tests/cache_list/files/write6.phar.inc index 39b1e8158c7..3ba5db3c544 100644 --- a/ext/phar/tests/cache_list/files/write6.phar.inc +++ b/ext/phar/tests/cache_list/files/write6.phar.inc @@ -10,13 +10,16 @@ $d = dirname(__FILE__) . "/copyonwrite6"; mkdir($d); file_put_contents($d . "/file1", "file1\n"); file_put_contents($d . "/file2", "file2\n"); -var_dump($phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP_DOTS),$d)); +$arr = $phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP_DOTS),$d); +$arr = $phar->buildFromDirectory($d); +ksort($arr); +var_dump($arr); $phar2 = new Phar(__FILE__); $arr = array(); foreach ($phar2 as $name => $file) { $arr[$name] = $file->getContent(); } -asort($arr); +ksort($arr); foreach ($arr as $name => $content) { echo $name, " ", $content; }