Skip to content

Commit a0e71cb

Browse files
committed
Fix maximum argument count of pcntl_forkx()
Closes GH-11199.
1 parent 1fc18a8 commit a0e71cb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ PHP NEWS
1414
. Fixed bug GH-11134 (Incorrect match default branch optimization). (ilutov)
1515
. Fixed too wide OR and AND range inference. (nielsdos)
1616

17+
- PCNTL:
18+
. Fixed maximum argument count of pcntl_forkx(). (nielsdos)
19+
1720
- PGSQL:
1821
. Fixed parameter parsing of pg_lo_export(). (kocsismate)
1922

ext/pcntl/pcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ PHP_FUNCTION(pcntl_forkx)
12951295
zend_long flags;
12961296
pid_t pid;
12971297

1298-
ZEND_PARSE_PARAMETERS_START(1, 2)
1298+
ZEND_PARSE_PARAMETERS_START(1, 1)
12991299
Z_PARAM_LONG(flags)
13001300
ZEND_PARSE_PARAMETERS_END();
13011301

0 commit comments

Comments
 (0)