repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
convert ***sort builtins to use inout instead of references
[hiphop-php.git]
/
hphp
/
test
/
slow
/
filesystem_iterator
/
construct.php
blob
93c377bbf8ebf1a5176bff331994e7278423bf5b
1
<
?hh
2
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
();
10
}
11
asort
(
inout
$ret
);
12
var_dump
(
array_values
(
$ret
));
13
}