convert ***sort builtins to use inout instead of references
[hiphop-php.git] / hphp / test / slow / ext_iterator / 1799.php
blob3f155321351d1c517b4eab52d287fef596da9ac7
1 <?hh
4 <<__EntryPoint>>
5 function main_1799() {
6 $dir = new DirectoryIterator(__DIR__.'/../../sample_dir');
7 $files = array();
8 // order changes per machine
9 while($dir->valid()) {
10 if(!$dir->isDot()) {
11 $files[] = $dir->current()."\n";
13 $dir->next();
15 asort(inout $files);
16 var_dump(array_values($files));