diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-01 23:54:28 +0200 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-01 23:55:08 +0200 |
| commit | bdacd2ae8f872f9d1bff8279546f0d86772659d6 (patch) | |
| tree | e06abca6c7bb92802b8f5b14642979c2299c1da2 /ext/pcntl/pcntl.stub.php | |
| parent | c10a406500b11dd764eb81fff3c36cef24dd861f (diff) | |
| download | php-git-bdacd2ae8f872f9d1bff8279546f0d86772659d6.tar.gz | |
Add a few missing types to stubs
Diffstat (limited to 'ext/pcntl/pcntl.stub.php')
| -rw-r--r-- | ext/pcntl/pcntl.stub.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/pcntl/pcntl.stub.php b/ext/pcntl/pcntl.stub.php index 8dbc1c48e2..3c1fd97968 100644 --- a/ext/pcntl/pcntl.stub.php +++ b/ext/pcntl/pcntl.stub.php @@ -4,13 +4,13 @@ function pcntl_fork(): int {} +/** @param int $status */ function pcntl_waitpid(int $pid, &$status, int $options = 0, &$rusage = []): int {} +/** @param int $status */ function pcntl_wait(&$status, int $options = 0, &$rusage = []): int {} -/** - * @param callable|int $handler - */ +/** @param callable|int $handler */ function pcntl_signal(int $signo, $handler, bool $restart_syscalls = true): bool {} /** @return mixed */ @@ -19,13 +19,16 @@ function pcntl_signal_get_handler(int $signo) {} function pcntl_signal_dispatch(): bool {} #ifdef HAVE_SIGPROCMASK +/** @param array $oldset */ function pcntl_sigprocmask(int $how, array $set, &$oldset = 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 {} +/** @param array $info */ function pcntl_sigtimedwait(array $set, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {} #endif #endif |
