We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec5a1e0 commit 5466d75Copy full SHA for 5466d75
1 file changed
ext/pcntl/pcntl.c
@@ -1549,7 +1549,7 @@ PHP_FUNCTION(pcntl_forkx)
1549
Z_PARAM_LONG(flags)
1550
ZEND_PARSE_PARAMETERS_END();
1551
1552
- if (flags < FORK_NOSIGCHLD || flags > FORK_WAITPID) {
+ if (flags & ~(FORK_NOSIGCHLD | FORK_WAITPID)) {
1553
zend_argument_value_error(1, "must be FORK_NOSIGCHLD or FORK_WAITPID");
1554
RETURN_THROWS();
1555
}
0 commit comments