constant
reactphp/event-loop
Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Returns the value of a constant
constant
(
string $name
):
mixed
});
$handled
=
false
;
$this
->
assertTrue
(
pcntl_signal
(
constant
(
$signal
), function () use (&
$handled
) {
$handled
=
true
;
}));
tests/StreamSelectLoopTest.php
});
$handled
=
false
;
$this
->
assertTrue
(
pcntl_signal
(
constant
(
$signal
), function () use (&
$handled
) {
$handled
=
true
;
}));
tests/StreamSelectLoopTest.php
protected function
resetSignalHandlers
()
{
foreach(
$this
->
signalProvider
() as
$signal
) {
pcntl_signal
(
constant
(
$signal
[
0
]),
SIG_DFL
);
}
}
tests/StreamSelectLoopTest.php
} else if (
$childPid
===
0
) {
usleep
(
20000
);
posix_kill
(
$currentPid
,
constant
(
$signal
));
die();
}
}
tests/StreamSelectLoopTest.php