From: Nikita Popov Date: Thu, 13 Aug 2020 14:32:43 +0000 (+0200) Subject: Fix invalid zpp calls in pcntl_get/setpriority X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fbc618a3c32cbdeaf4ee8ddaf80da6b37ea3948;p=php Fix invalid zpp calls in pcntl_get/setpriority --- diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index bc228ce570..624f2f0db3 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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(); } @@ -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(); }