pcntl_signal_get_handler
PHP 7 >= 7.1.0, PHP 8
pcntl_signal_get_handler - Get the current handler for specified signal
Manual
pcntl_signal_get_handler(
int$signal ): callable|int
The pcntl_signal_get_handler function will get the current handler for the specified signal.
Parameters
- signal
-
The signal number.
Return Values
This function may return an integer value that refers to SIG_DFL or SIG_IGN. If a custom handler has been set, that callable is returned.
Changelog
Version | Description |
7.1.0 | pcntl_signal_get_handler has been added. |