Commit be83d085cbb for php
commit be83d085cbbe1d60436b94ae0a80bfd8096dbba5
Merge: 579ef1d8020 193929fd0fd
Author: David Carlier <devnexen@gmail.com>
Date: Tue Nov 17 21:50:28 2026 +0000
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
ext/pcntl: Fix pcntl_signal() fatal error for SIGKILL and SIGSTOP
# Conflicts:
# ext/pcntl/pcntl.c
diff --cc ext/pcntl/pcntl.c
index 933e9c4ddc8,514e4e99b80..b247e4c6522
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@@ -829,11 -847,7 +848,7 @@@ PHP_FUNCTION(pcntl_signal
/* Special long value case for SIG_DFL and SIG_IGN */
if (Z_TYPE_P(handle) == IS_LONG) {
- if (Z_LVAL_P(handle) != (zend_long) SIG_DFL && Z_LVAL_P(handle) != (zend_long) SIG_IGN) {
- zend_argument_value_error(2, "must be either SIG_DFL or SIG_IGN when an integer value is given");
- RETURN_THROWS();
- }
- if (php_signal(signo, (Sigfunc *) Z_LVAL_P(handle), (int) restart_syscalls) == (void *)SIG_ERR) {
+ if (php_signal(signo, (Sigfunc *) Z_LVAL_P(handle), restart_syscalls) == (void *)SIG_ERR) {
PCNTL_G(last_error) = errno;
php_error_docref(NULL, E_WARNING, "Error assigning signal");
RETURN_FALSE;