Skip to content

Commit 4c467e6

Browse files
committed
ext/sockets: adding few constants for NetBSD.
SOCK_CONN_DGRAM (and its alias SOCK_DCCP) for connection orientated datagram. Close phpGH-13728
1 parent 67184f5 commit 4c467e6

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

NEWS

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ PHP NEWS
188188
- Sockets:
189189
. Removed the deprecated inet_ntoa call support. (David Carlier)
190190
. Added the SO_EXECLUSIVEADDRUSE windows constant. (David Carlier)
191+
. Added the SOCK_CONN_DGRAM/SOCK_DCCP netbsd constants. (David Carlier)
191192

192193
- Sodium:
193194
. Add support for AEGIS-128L and AEGIS-256 (jedisct1)

UPGRADING

+2
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ PHP 8.4 UPGRADE NOTES
545545

546546
- Sockets:
547547
. SO_EXCLUSIVEADDRUSE (Windows only).
548+
. SOCK_CONN_DGRAM (NetBSD only).
549+
. SOCK_DCCP (NetBSD only).
548550

549551
- Sodium:
550552
. SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES

ext/sockets/sockets.stub.php

+13
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@
5353
*/
5454
const SOCK_RDM = UNKNOWN;
5555
#endif
56+
#ifdef SOCK_CONN_DGRAM
57+
/**
58+
* @var int
59+
* @cvalue SOCK_CONN_DGRAM
60+
*/
61+
const SOCK_CONN_DGRAM = UNKNOWN;
62+
/**
63+
* is an alias of SOCK_CONN_DGRAM
64+
* @var int
65+
* @cvalue SOCK_DCCP
66+
*/
67+
const SOCK_DCCP = UNKNOWN;
68+
#endif
5669

5770
/**
5871
* @var int

ext/sockets/sockets_arginfo.h

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)