summaryrefslogtreecommitdiff
path: root/ext/pcntl/pcntl.stub.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-06 11:23:13 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-06 12:45:57 +0200
commit7a1dc180a62ee0c6b2624d17c86800c117e84357 (patch)
treeea10d10f5d6a245c7689a030853f9ff6ace05e0f /ext/pcntl/pcntl.stub.php
parent84e0ea6b43f1803aa202448997639a9795358181 (diff)
downloadphp-git-7a1dc180a62ee0c6b2624d17c86800c117e84357.tar.gz
Update ext/pcntl parameter names
Closes GH-6278.
Diffstat (limited to 'ext/pcntl/pcntl.stub.php')
-rw-r--r--ext/pcntl/pcntl.stub.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/ext/pcntl/pcntl.stub.php b/ext/pcntl/pcntl.stub.php
index 2c3cd64aad..ea66c9f898 100644
--- a/ext/pcntl/pcntl.stub.php
+++ b/ext/pcntl/pcntl.stub.php
@@ -6,36 +6,36 @@ function pcntl_fork(): int {}
/**
* @param int $status
- * @param array $rusage
+ * @param array $resource_usage
*/
-function pcntl_waitpid(int $pid, &$status, int $options = 0, &$rusage = []): int {}
+function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usage = []): int {}
/**
* @param int $status
- * @param array $rusage
+ * @param array $resource_usage
*/
-function pcntl_wait(&$status, int $options = 0, &$rusage = []): int {}
+function pcntl_wait(&$status, int $flags = 0, &$resource_usage = []): int {}
/** @param callable|int $handler */
-function pcntl_signal(int $signo, $handler, bool $restart_syscalls = true): bool {}
+function pcntl_signal(int $signal, $handler, bool $restart_syscalls = true): bool {}
/** @return callable|int */
-function pcntl_signal_get_handler(int $signo) {}
+function pcntl_signal_get_handler(int $signal) {}
function pcntl_signal_dispatch(): bool {}
#ifdef HAVE_SIGPROCMASK
-/** @param array $oldset */
-function pcntl_sigprocmask(int $how, array $set, &$oldset = null): bool {}
+/** @param array $old_signals */
+function pcntl_sigprocmask(int $mode, array $signals, &$old_signals = null): bool {}
#endif
#ifdef HAVE_STRUCT_SIGINFO_T
#if defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)
/** @param array $info */
-function pcntl_sigwaitinfo(array $set, &$info = []): int|false {}
+function pcntl_sigwaitinfo(array $signals, &$info = []): int|false {}
/** @param array $info */
-function pcntl_sigtimedwait(array $set, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
+function pcntl_sigtimedwait(array $signals, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
#endif
#endif
@@ -55,7 +55,7 @@ function pcntl_wtermsig(int $status): int|false {}
function pcntl_wstopsig(int $status): int|false {}
-function pcntl_exec(string $path, array $args = [], array $envs = []): bool {}
+function pcntl_exec(string $path, array $args = [], array $env_vars = []): bool {}
function pcntl_alarm(int $seconds): int {}
@@ -65,16 +65,16 @@ function pcntl_get_last_error(): int {}
function pcntl_errno(): int {}
#ifdef HAVE_GETPRIORITY
-function pcntl_getpriority(?int $pid = null, int $process_identifier = PRIO_PROCESS): int|false {}
+function pcntl_getpriority(?int $process_id = null, int $mode = PRIO_PROCESS): int|false {}
#endif
#ifdef HAVE_SETPRIORITY
-function pcntl_setpriority(int $priority, ?int $pid = null, int $process_identifier = PRIO_PROCESS): bool{}
+function pcntl_setpriority(int $priority, ?int $process_id = null, int $mode = PRIO_PROCESS): bool{}
#endif
-function pcntl_strerror(int $errno): string {}
+function pcntl_strerror(int $error_code): string {}
-function pcntl_async_signals(?bool $on = null): bool {}
+function pcntl_async_signals(?bool $enable = null): bool {}
#ifdef HAVE_UNSHARE
function pcntl_unshare(int $flags): bool {}