summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-05 18:45:07 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-07 12:35:30 +0200
commitaf80d8a14e5540a151e2b40f165ebe122467484b (patch)
treec852017699321228cb32ae5764f817ee64be1a2a /ext/sockets
parent3bb183036976fc8bfdf039b41efe1e4312894937 (diff)
downloadphp-git-af80d8a14e5540a151e2b40f165ebe122467484b.tar.gz
Add more argument types to stubs
Closes GH-5943
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.stub.php1
-rw-r--r--ext/sockets/sockets_arginfo.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/sockets/sockets.stub.php b/ext/sockets/sockets.stub.php
index b3f0dcbbc2..7d524dd51c 100644
--- a/ext/sockets/sockets.stub.php
+++ b/ext/sockets/sockets.stub.php
@@ -48,6 +48,7 @@ function socket_strerror(int $errno): string {}
function socket_bind(Socket $socket, string $addr, int $port = 0): bool {}
+/** @param string|null $buf */
function socket_recv(Socket $socket, &$buf, int $len, int $flags): int|false {}
function socket_send(Socket $socket, string $buf, int $len, int $flags): int|false {}
diff --git a/ext/sockets/sockets_arginfo.h b/ext/sockets/sockets_arginfo.h
index 234b0c7982..f02533324b 100644
--- a/ext/sockets/sockets_arginfo.h
+++ b/ext/sockets/sockets_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 3256069f3943ec6dac1db915d737324962dda7c4 */
+ * Stub hash: 8d03ee514902490691aa4a9b8801fbc10b5b9c26 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_select, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(1, read_fds, IS_ARRAY, 1)