From a0e71cb8114661202c7cb20a9ef21777516bae67 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 6 May 2023 18:26:57 +0200 Subject: [PATCH] Fix maximum argument count of pcntl_forkx() Closes GH-11199. --- NEWS | 3 +++ ext/pcntl/pcntl.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 3f025d79687..198059fc72b 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,9 @@ PHP NEWS . Fixed bug GH-11134 (Incorrect match default branch optimization). (ilutov) . Fixed too wide OR and AND range inference. (nielsdos) +- PCNTL: + . Fixed maximum argument count of pcntl_forkx(). (nielsdos) + - PGSQL: . Fixed parameter parsing of pg_lo_export(). (kocsismate) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index d040f96889e..c2b7f390fca 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -1295,7 +1295,7 @@ PHP_FUNCTION(pcntl_forkx) zend_long flags; pid_t pid; - ZEND_PARSE_PARAMETERS_START(1, 2) + ZEND_PARSE_PARAMETERS_START(1, 1) Z_PARAM_LONG(flags) ZEND_PARSE_PARAMETERS_END();