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
/
ext_iterator
/
1799.php
blob
3f155321351d1c517b4eab52d287fef596da9ac7
1
<
?hh
2
3
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
"
;
12
}
13
$dir
->
next
();
14
}
15
asort
(
inout
$files
);
16
var_dump
(
array_values
(
$files
));
17
}