convert ***sort builtins to use inout instead of references
[hiphop-php.git] / hphp / test / slow / filesystem_iterator / construct.php
blob93c377bbf8ebf1a5176bff331994e7278423bf5b
1 <?hh
3 <<__EntryPoint>>
4 function main_construct() {
5 $sample_dir = __DIR__.'/../../sample_dir';
6 $it = new FilesystemIterator($sample_dir);
7 $ret = array();
8 foreach ($it as $fileinfo) {
9 $ret[] = $fileinfo->getFilename();
11 asort(inout $ret);
12 var_dump(array_values($ret));