ext/sockets: adding windows SO_EXCLUSIVEADDRUSE constant.

Close GH-13030
This commit is contained in:
David Carlier 2023-12-26 15:20:13 +00:00
parent 1d641f6c6d
commit b02f95adae
4 changed files with 15 additions and 1 deletions

1
NEWS
View File

@ -102,6 +102,7 @@ SOAP:
Sockets:
. Removed the deprecated inet_ntoa call support. (David Carlier)
. Added the SO_EXECLUSIVEADDRUSE windows constant. (David Carlier)
Sodium:
. Add support for AEGIS-128L and AEGIS-256 (jedisct1)

View File

@ -329,6 +329,9 @@ PHP 8.4 UPGRADE NOTES
. The IntlDateFormatter class exposes now the new PATTERN constant
reflecting udat api's UDAT_PATTERN.
- Sockets:
. SO_EXCLUSIVEADDRUSE (Windows only).
- XML:
. Added XML_OPTION_PARSE_HUGE to allow large inputs in xml_parse and
xml_parse_into_struct.

View File

@ -1748,6 +1748,13 @@ const SO_DETACH_FILTER = UNKNOWN;
*/
const SO_DETACH_BPF = UNKNOWN;
#endif
#if defined(SO_EXCLUSIVEADDRUSE)
/**
* @var int
* @cvalue SO_EXCLUSIVEADDRUSE
*/
const SO_EXCLUSIVEADDRUSE = UNKNOWN;
#endif
#if defined(TCP_QUICKACK)
/**
* @var int

View File

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a64427da8198261f528a38c5bf90c673eb5b8282 */
* Stub hash: f1bb7ebc6cd2353fc3bac6ad5d3c5644036e3aeb */
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)
@ -1009,6 +1009,9 @@ static void register_sockets_symbols(int module_number)
#if defined(SO_DETACH_BPF)
REGISTER_LONG_CONSTANT("SO_DETACH_BPF", SO_DETACH_BPF, CONST_PERSISTENT);
#endif
#if defined(SO_EXCLUSIVEADDRUSE)
REGISTER_LONG_CONSTANT("SO_EXCLUSIVEADDRUSE", SO_EXCLUSIVEADDRUSE, CONST_PERSISTENT);
#endif
#if defined(TCP_QUICKACK)
REGISTER_LONG_CONSTANT("TCP_QUICKACK", TCP_QUICKACK, CONST_PERSISTENT);
#endif