mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/sockets: adding BSD IP_BINDANY constant.
Simply allows the socket to bind to any address, including one not bound to any network interface. close GH-17591
This commit is contained in:
1
NEWS
1
NEWS
@@ -132,6 +132,7 @@ PHP NEWS
|
||||
(David Carlier)
|
||||
. socket_getsockname/socket_create/socket_bind handled AF_PACKET family socket.
|
||||
(David Carlier)
|
||||
. Added IP_BINDANY for a socket to bind to any address. (David Carlier)
|
||||
|
||||
- Sodium:
|
||||
. Fix overall theorical overflows on zend_string buffer allocations.
|
||||
|
||||
@@ -267,6 +267,7 @@ PHP 8.5 UPGRADE NOTES
|
||||
. TCP_REUSPORT_LB_NUMA_CURDOM (FreeBSD only).
|
||||
. TCP_BBR_ALGORITHM (FreeBSD only).
|
||||
. AF_PACKET (Linux only).
|
||||
. IP_BINDANY (FreeBSD/NetBSD/OpenBSD only).
|
||||
|
||||
========================================
|
||||
11. Changes to INI File Handling
|
||||
|
||||
@@ -1915,6 +1915,13 @@ const TCP_QUICKACK = UNKNOWN;
|
||||
*/
|
||||
const TCP_REPAIR = UNKNOWN;
|
||||
#endif
|
||||
#if defined(IP_BINDANY)
|
||||
/**
|
||||
* @var int
|
||||
* @cvalue IP_BINDANY
|
||||
*/
|
||||
const IP_BINDANY = UNKNOWN;
|
||||
#endif
|
||||
#if defined(IP_DONTFRAG)
|
||||
/**
|
||||
* @var int
|
||||
|
||||
5
ext/sockets/sockets_arginfo.h
generated
5
ext/sockets/sockets_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 0be24cb2f268ab3d43121637ae451d8da4b50410 */
|
||||
* Stub hash: aac197335037777d31d83d4a4040bbfcd0c55813 */
|
||||
|
||||
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)
|
||||
@@ -1060,6 +1060,9 @@ static void register_sockets_symbols(int module_number)
|
||||
#if defined(TCP_REPAIR)
|
||||
REGISTER_LONG_CONSTANT("TCP_REPAIR", TCP_REPAIR, CONST_PERSISTENT);
|
||||
#endif
|
||||
#if defined(IP_BINDANY)
|
||||
REGISTER_LONG_CONSTANT("IP_BINDANY", IP_BINDANY, CONST_PERSISTENT);
|
||||
#endif
|
||||
#if defined(IP_DONTFRAG)
|
||||
REGISTER_LONG_CONSTANT("IP_DONTFRAG", IP_DONTFRAG, CONST_PERSISTENT);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user