fopen
reactphp/event-loop
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Opens file or URL
fopen
(
string $filename
,
string $mode
,
bool $use_include_path
=
false
,
?
resource $context
=
null
):
resource
|
false
posix_mkfifo
(
$this
->
fifoPath
,
0600
);
$stream
=
fopen
(
$this
->
fifoPath
,
'r+'
);
tests/ExtEventLoopTest.php
} else {
$stream
=
fopen
(
'php://temp/maxmemory:0'
,
'r+'
);
fwrite
(
$stream
,
'x'
);
ftruncate
(
$stream
,
0
);
tests/ExtEventLoopTest.php
$this
->
loop
=
$this
->
createLoop
(
true
);
$input
=
fopen
(
'php://temp/maxmemory:0'
,
'r+'
);
fwrite
(
$input
,
'x'
);
ftruncate
(
$input
,
0
);
tests/ExtEventLoopTest.php
posix_mkfifo
(
$this
->
fifoPath
,
0600
);
$stream
=
fopen
(
$this
->
fifoPath
,
'r+'
);
return
$stream
;
}
tests/ExtLibeventLoopTest.php