unlink
reactphp/event-loop
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Deletes a file
unlink
(
string $filename
, ?
resource $context
=
null
):
bool
if (
'Linux'
===
PHP_OS
) {
$this
->
fifoPath
=
tempnam
(
sys_get_temp_dir
(),
'react-'
);
unlink
(
$this
->
fifoPath
);
posix_mkfifo
(
$this
->
fifoPath
,
0600
);
tests/ExtEventLoopTest.php
public function
tearDownFile
()
{
if (
file_exists
(
$this
->
fifoPath
)) {
unlink
(
$this
->
fifoPath
);
}
}
tests/ExtLibeventLoopTest.php
$this
->
fifoPath
=
tempnam
(
sys_get_temp_dir
(),
'react-'
);
unlink
(
$this
->
fifoPath
);
tests/ExtLibeventLoopTest.php