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_stream
/
stream_get_line_buffer_properly_resized.php
blob
fad8ba8719c9057519baeae9f69504d003a106cb
1
<
?hh
2
3
<<
__EntryPoint
>>
4
function
main_stream_get_line_buffer_properly_resized
() {
5
$fp
=
fopen
(
dirname
(
__FILE__
).
"/16384chars.txt"
,
'r'
);
6
$init
=
fgets
(
$fp
,
42
);
7
rewind
(
$fp
);
8
$first
=
stream_get_line
(
$fp
,
8191
);
9
$second
=
stream_get_line
(
$fp
,
8192
);
10
echo
strlen
(
$second
);
11
}