mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
ext/sockets: addiong few constants for NetBSD.
SOCK_CONN_DGRAM (and its alias SOCK_DCCP) for connection orientated datagram.
This commit is contained in:
parent
b06c95b631
commit
f714aa49ee
3 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
8
ext/sockets/sockets_arginfo.h
generated
8
ext/sockets/sockets_arginfo.h
generated
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue