1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/sockets: adding few constants for NetBSD.

SOCK_CONN_DGRAM (and its alias SOCK_DCCP) for connection orientated
datagram.

Close GH-13728
This commit is contained in:
David Carlier
2024-03-16 13:34:40 +00:00
parent 67184f5445
commit 4c467e6eb8
4 changed files with 23 additions and 1 deletions

1
NEWS
View File

@@ -188,6 +188,7 @@ PHP NEWS
- Sockets:
. Removed the deprecated inet_ntoa call support. (David Carlier)
. Added the SO_EXECLUSIVEADDRUSE windows constant. (David Carlier)
. Added the SOCK_CONN_DGRAM/SOCK_DCCP netbsd constants. (David Carlier)
- Sodium:
. Add support for AEGIS-128L and AEGIS-256 (jedisct1)

View File

@@ -545,6 +545,8 @@ PHP 8.4 UPGRADE NOTES
- Sockets:
. SO_EXCLUSIVEADDRUSE (Windows only).
. SOCK_CONN_DGRAM (NetBSD only).
. SOCK_DCCP (NetBSD only).
- Sodium:
. SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES

View File

@@ -53,6 +53,19 @@ const SOCK_SEQPACKET = UNKNOWN;
*/
const SOCK_RDM = UNKNOWN;
#endif
#ifdef SOCK_CONN_DGRAM
/**
* @var int
* @cvalue SOCK_CONN_DGRAM
*/
const SOCK_CONN_DGRAM = UNKNOWN;
/**
* is an alias of SOCK_CONN_DGRAM
* @var int
* @cvalue SOCK_DCCP
*/
const SOCK_DCCP = UNKNOWN;
#endif
/**
* @var int

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: ec04de98f14d553e10da9f7f6de7ec281215ef44 */
* Stub hash: a99144c7c83a3f06e54a01bc21c0d30c9a21be29 */
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)
@@ -346,6 +346,12 @@ static void register_sockets_symbols(int module_number)
REGISTER_LONG_CONSTANT("SOCK_SEQPACKET", SOCK_SEQPACKET, CONST_PERSISTENT);
#if defined(SOCK_RDM)
REGISTER_LONG_CONSTANT("SOCK_RDM", SOCK_RDM, CONST_PERSISTENT);
#endif
#if defined(SOCK_CONN_DGRAM)
REGISTER_LONG_CONSTANT("SOCK_CONN_DGRAM", SOCK_CONN_DGRAM, CONST_PERSISTENT);
#endif
#if defined(SOCK_CONN_DGRAM)
REGISTER_LONG_CONSTANT("SOCK_DCCP", SOCK_DCCP, CONST_PERSISTENT);
#endif
REGISTER_LONG_CONSTANT("MSG_OOB", MSG_OOB, CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("MSG_WAITALL", MSG_WAITALL, CONST_PERSISTENT);