diff --git a/reference/sockets/constants.xml b/reference/sockets/constants.xml
index 9b896f8f4f7f..e1e4b9ada057 100644
--- a/reference/sockets/constants.xml
+++ b/reference/sockets/constants.xml
@@ -44,7 +44,22 @@
- Available as of PHP 8.3.0 (FreeBSD only)
+ Socket address family for the FreeBSD divert(4)
+ interface, used to receive packets diverted by the firewall.
+ Available as of PHP 8.3.0 (FreeBSD only).
+
+
+
+
+
+ AF_PACKET
+ (int)
+
+
+
+ Socket address family for low-level packet sockets, used to send
+ and receive raw packets at the device-driver (OSI layer 2) level.
+ Available as of PHP 8.5.0 (Linux only).
diff --git a/reference/sockets/functions/socket-addrinfo-lookup.xml b/reference/sockets/functions/socket-addrinfo-lookup.xml
index 40aee9e5ccf7..6bb136c32241 100644
--- a/reference/sockets/functions/socket-addrinfo-lookup.xml
+++ b/reference/sockets/functions/socket-addrinfo-lookup.xml
@@ -73,6 +73,15 @@
+
+ 8.5.0
+
+ Now throws a TypeError if any value of
+ the hints array cannot be cast to int, and may
+ throw a ValueError if any of these
+ values overflow.
+
+
8.0.0
diff --git a/reference/sockets/functions/socket-bind.xml b/reference/sockets/functions/socket-bind.xml
index e9c073945155..0d93bd9252bc 100644
--- a/reference/sockets/functions/socket-bind.xml
+++ b/reference/sockets/functions/socket-bind.xml
@@ -86,6 +86,13 @@
+
+ 8.5.0
+
+ Now throws a ValueError when
+ port is lower than 0 or greater than 65535.
+
+
&sockets.changelog.socket-param;
diff --git a/reference/sockets/functions/socket-create-listen.xml b/reference/sockets/functions/socket-create-listen.xml
index 8c16451d59cd..802431c19208 100644
--- a/reference/sockets/functions/socket-create-listen.xml
+++ b/reference/sockets/functions/socket-create-listen.xml
@@ -74,6 +74,13 @@
+
+ 8.5.0
+
+ Now throws a ValueError when
+ port is lower than 0 or greater than 65535.
+
+
8.4.0
diff --git a/reference/sockets/functions/socket-create.xml b/reference/sockets/functions/socket-create.xml
index 709dc6c90ed1..d61481929f11 100644
--- a/reference/sockets/functions/socket-create.xml
+++ b/reference/sockets/functions/socket-create.xml
@@ -222,6 +222,12 @@
+
+ 8.5.0
+
+ Now supports creating AF_PACKET family sockets.
+
+
8.0.0
diff --git a/reference/sockets/functions/socket-getsockname.xml b/reference/sockets/functions/socket-getsockname.xml
index e1ce522bde5f..08911aa0066b 100644
--- a/reference/sockets/functions/socket-getsockname.xml
+++ b/reference/sockets/functions/socket-getsockname.xml
@@ -90,6 +90,13 @@
+
+ 8.5.0
+
+ Now retrieves the interface index and its string representation when
+ used on an AF_PACKET family socket.
+
+
&sockets.changelog.socket-param;
diff --git a/reference/sockets/functions/socket-sendto.xml b/reference/sockets/functions/socket-sendto.xml
index 9dc952c5206b..89881b4e499e 100644
--- a/reference/sockets/functions/socket-sendto.xml
+++ b/reference/sockets/functions/socket-sendto.xml
@@ -137,6 +137,13 @@
+
+ 8.5.0
+
+ Now throws a ValueError when
+ port is lower than 0 or greater than 65535.
+
+
&sockets.changelog.socket-param;
8.0.0
diff --git a/reference/sockets/functions/socket-set-option.xml b/reference/sockets/functions/socket-set-option.xml
index 7f6c8ff9a444..9500de38af70 100644
--- a/reference/sockets/functions/socket-set-option.xml
+++ b/reference/sockets/functions/socket-set-option.xml
@@ -90,6 +90,17 @@
+
+ 8.5.0
+
+ Now throws an exception when MCAST_LEAVE_GROUP
+ or MCAST_LEAVE_SOURCE_GROUP is used and the
+ value is not a valid object or array, and throws a
+ ValueError when a multicast option is
+ used on a socket that is not of AF_INET or
+ AF_INET6 family.
+
+
&sockets.changelog.socket-param;