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_set_blocking.php
blob
2da69b079a997362f5765bbaa096b20f1a624eb1
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_stream_set_blocking
() {
6
$fd
=
fopen
(
__DIR__
.
'/stream_set_blocking.php.sample'
,
'rb'
);
7
var_dump
(
stream_set_blocking
(
$fd
,
true
));
8
var_dump
(
stream_set_blocking
(
$fd
,
false
));
9
var_dump
(
trim
(
fgets
(
$fd
)));
10
fclose
(
$fd
);
11
}