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
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_file
/
vfprintf.php
blob
0ae89c1c1f16c7c5456aa7634df39b98deae77b1
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_vfprintf
() {
6
$tempfile
=
tempnam
(
'/tmp'
,
'vmextfiletest'
);
7
8
$f
=
fopen
(
$tempfile
,
'w'
);
9
vfprintf
(
$f
,
"
%s %s
"
,
varray
[
"testing"
,
"vfprintf"
]);
10
fclose
(
$f
);
11
12
$f
=
fopen
(
$tempfile
,
"r"
);
13
fpassthru
(
$f
);
14
echo
"
\n
"
;
15
16
unlink
(
$tempfile
);
17
}