Copied!
CloneableFinalInstantiable
Methods
public __construct()
public handle(int $signal) : void
 
  • internal
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.

  • internal
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.

  • internal
public register(int $signal, callable $signalHandler) : void
public scheduleAlarm(int $seconds) : void
 
  • internal
Properties
private array $originalHandlers = []
 
  • var array<int,callable|int|string>
private array $signalHandlers = []
 
  • var array<int,callable[]>
private array $stack = []
 
  • var array<int,callable[]>[]
Methods
public static isSupported() : bool
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration