summaryrefslogtreecommitdiff
path: root/ext/pcntl
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-01 23:54:28 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-01 23:55:08 +0200
commitbdacd2ae8f872f9d1bff8279546f0d86772659d6 (patch)
treee06abca6c7bb92802b8f5b14642979c2299c1da2 /ext/pcntl
parentc10a406500b11dd764eb81fff3c36cef24dd861f (diff)
downloadphp-git-bdacd2ae8f872f9d1bff8279546f0d86772659d6.tar.gz
Add a few missing types to stubs
Diffstat (limited to 'ext/pcntl')
-rw-r--r--ext/pcntl/pcntl.stub.php9
-rw-r--r--ext/pcntl/pcntl_arginfo.h2
2 files changed, 7 insertions, 4 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
diff --git a/ext/pcntl/pcntl_arginfo.h b/ext/pcntl/pcntl_arginfo.h
index 31dc8613c0..6e67d4613d 100644
--- a/ext/pcntl/pcntl_arginfo.h
+++ b/ext/pcntl/pcntl_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: c87eae3de097554566cf3e285c1a2542947d6ff9 */
+ * Stub hash: 243017c5440bff0b3ee3296705d8455d0fac5b7e */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()