]> granicus.if.org Git - php/commitdiff
socket_create_pair() can no longer return NULL
authorChristoph M. Becker <cmbecker69@gmx.de>
Sun, 10 Jan 2021 22:12:32 +0000 (23:12 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 12 Jan 2021 11:08:31 +0000 (12:08 +0100)
Closes GH-6592.

ext/sockets/sockets.stub.php
ext/sockets/sockets_arginfo.h

index 1a62d83193797d4704d01476b587b233cca30b02..b345163bc75bd8905f67b56deece8e76d2dcdab6 100644 (file)
@@ -78,7 +78,7 @@ function socket_setopt(Socket $socket, int $level, int $option, $value): bool {}
 
 #ifdef HAVE_SOCKETPAIR
 /** @param array $pair */
-function socket_create_pair(int $domain, int $type, int $protocol, &$pair): ?bool {}
+function socket_create_pair(int $domain, int $type, int $protocol, &$pair): bool {}
 #endif
 
 #ifdef HAVE_SHUTDOWN
index f86f2250267ae7a56f496e8e4ca6bee351ed04bb..343c19a563f6cb08ec63f2826c9459ef5cc77a4f 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: ee025740240c285691a84cfa3563c1dd1586a75d */
+ * Stub hash: 90c3c470833947859433a2668d328fddfff94ae9 */
 
 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, IS_ARRAY, 1)
@@ -125,7 +125,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_socket_setopt arginfo_socket_set_option
 
 #if defined(HAVE_SOCKETPAIR)
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_socket_create_pair, 0, 4, _IS_BOOL, 1)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_socket_create_pair, 0, 4, _IS_BOOL, 0)
        ZEND_ARG_TYPE_INFO(0, domain, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0)
        ZEND_ARG_TYPE_INFO(0, protocol, IS_LONG, 0)