CloneableFinalInstantiable
| Methods |
| public __construct() |
public handle(int $signal) : void
|
| public static isSupported() : bool |
| public popPreviousHandlers() : void Restores the previous handlers from the stack, making them active. This also restores the original OS-level signal handler if no more handlers are registered for a signal that was just popped.
|
| public pushCurrentHandlers() : void Pushes the current active handlers onto the stack and clears the active list. This prepares the registry for a new set of handlers within a specific scope.
|
| public register(int $signal, callable $signalHandler) : void |
public scheduleAlarm(int $seconds) : void
|
| Properties |
private array $originalHandlers = []
|
private array $signalHandlers = []
|
private array $stack = []
|
| Methods |
| public static isSupported() : bool |