[php-src] PR #25513: Fix pcntl_signal() fatal error for SIGKILL and SIGSTOP

From: Date: Tue, 17 Nov 2026 08:43:58 +0000
Subject: [php-src] PR #25513: Fix pcntl_signal() fatal error for SIGKILL and SIGSTOP
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40718@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25513 Author: lacatoire pcntl_signal() on SIGKILL or SIGSTOP aborts the script with an uncatchable fatal error raised by zend_sigaction(), because sigaction() always fails for these signals. The SIG_ERR handling in pcntl_signal() is never reached. Return false with the usual "Error assigning signal" warning instead. To reproduce: ```php <?php var_dump(pcntl_signal(SIGKILL, SIG_IGN)); echo "alive\n"; ``` Before (8.4.26): Fatal error: Error installing signal handler for 9 After: Warning: pcntl_signal(): Error assigning signal, bool(false), alive

« previous php.git-pulls (#40718) next »