Skip to content

Commit 41e9a8e

Browse files
committed
socket_create_pair() can no longer return NULL
Closes GH-6592.
1 parent 7a049cd commit 41e9a8e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/sockets/sockets.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function socket_setopt(Socket $socket, int $level, int $option, $value): bool {}
7878

7979
#ifdef HAVE_SOCKETPAIR
8080
/** @param array $pair */
81-
function socket_create_pair(int $domain, int $type, int $protocol, &$pair): ?bool {}
81+
function socket_create_pair(int $domain, int $type, int $protocol, &$pair): bool {}
8282
#endif
8383

8484
#ifdef HAVE_SHUTDOWN

ext/sockets/sockets_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: ee025740240c285691a84cfa3563c1dd1586a75d */
2+
* Stub hash: 90c3c470833947859433a2668d328fddfff94ae9 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_select, 0, 4, MAY_BE_LONG|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(1, read, IS_ARRAY, 1)
@@ -125,7 +125,7 @@ ZEND_END_ARG_INFO()
125125
#define arginfo_socket_setopt arginfo_socket_set_option
126126

127127
#if defined(HAVE_SOCKETPAIR)
128-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_socket_create_pair, 0, 4, _IS_BOOL, 1)
128+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_socket_create_pair, 0, 4, _IS_BOOL, 0)
129129
ZEND_ARG_TYPE_INFO(0, domain, IS_LONG, 0)
130130
ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
131131
ZEND_ARG_TYPE_INFO(0, protocol, IS_LONG, 0)

0 commit comments

Comments
 (0)