diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-13 16:32:43 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-13 16:46:02 +0200 |
| commit | 8fbc618a3c32cbdeaf4ee8ddaf80da6b37ea3948 (patch) | |
| tree | e5c9a0451beb9fc038365dc6ef296e22e3d22eeb | |
| parent | b03e300a292a87d8d6303e6baa06b7a1d9c6e86e (diff) | |
| download | php-git-8fbc618a3c32cbdeaf4ee8ddaf80da6b37ea3948.tar.gz | |
Fix invalid zpp calls in pcntl_get/setpriority
| -rw-r--r-- | ext/pcntl/pcntl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |
