Skip to content

Commit

Permalink
Fix invalid zpp calls in pcntl_get/setpriority
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 13, 2020
1 parent b03e300 commit 8fbc618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/pcntl/pcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ PHP_FUNCTION(pcntl_getpriority)
zend_bool pid_is_null = 1;
int pri;

if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l!l", &pid, &who) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l!l", &pid, &pid_is_null, &who) == FAILURE) {
RETURN_THROWS();
}

Expand Down Expand Up @@ -1220,7 +1220,7 @@ PHP_FUNCTION(pcntl_setpriority)
zend_bool pid_is_null = 1;
zend_long pri;

if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &pri, &pid, &who) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &pri, &pid, &pid_is_null, &who) == FAILURE) {
RETURN_THROWS();
}

Expand Down

0 comments on commit 8fbc618

Please sign in to comment.