Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: six plus three?
(Example: nine)

The Note You're Voting On

MAL
4 years ago
If the signal handler is a Closure, the function itself is returned:

pcntl_signal(SIGHUP, function ($signo, $siginfo) {
echo SIGHUP;
});

var_dump(pcntl_signal_get_handler(SIGHUP)); // Outputs: string(6) "SIGHUP"

<< Back to user notes page

To Top