Skip to content

Commit 8fbc618

Browse files
committed
Fix invalid zpp calls in pcntl_get/setpriority
1 parent b03e300 commit 8fbc618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pcntl/pcntl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ PHP_FUNCTION(pcntl_getpriority)
11811181
zend_bool pid_is_null = 1;
11821182
int pri;
11831183

1184-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l!l", &pid, &who) == FAILURE) {
1184+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l!l", &pid, &pid_is_null, &who) == FAILURE) {
11851185
RETURN_THROWS();
11861186
}
11871187

@@ -1220,7 +1220,7 @@ PHP_FUNCTION(pcntl_setpriority)
12201220
zend_bool pid_is_null = 1;
12211221
zend_long pri;
12221222

1223-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &pri, &pid, &who) == FAILURE) {
1223+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l!l", &pri, &pid, &pid_is_null, &who) == FAILURE) {
12241224
RETURN_THROWS();
12251225
}
12261226

0 commit comments

Comments
 (0)