Skip to content

Commit 890cc22

Browse files
authored
Sockets: add changelog entries for PHP 8.5 changes (#5535)
* Sockets: add changelog entries for PHP 8.5 changes
1 parent ef623cc commit 890cc22

8 files changed

Lines changed: 70 additions & 1 deletion

File tree

reference/sockets/constants.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,22 @@
4444
</term>
4545
<listitem>
4646
<simpara>
47-
Available as of PHP 8.3.0 (FreeBSD only)
47+
Socket address family for the FreeBSD <literal>divert(4)</literal>
48+
interface, used to receive packets diverted by the firewall.
49+
Available as of PHP 8.3.0 (FreeBSD only).
50+
</simpara>
51+
</listitem>
52+
</varlistentry>
53+
<varlistentry xml:id="constant.af-packet">
54+
<term>
55+
<constant>AF_PACKET</constant>
56+
(<type>int</type>)
57+
</term>
58+
<listitem>
59+
<simpara>
60+
Socket address family for low-level packet sockets, used to send
61+
and receive raw packets at the device-driver (OSI layer 2) level.
62+
Available as of PHP 8.5.0 (Linux only).
4863
</simpara>
4964
</listitem>
5065
</varlistentry>

reference/sockets/functions/socket-addrinfo-lookup.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@
7373
</row>
7474
</thead>
7575
<tbody>
76+
<row>
77+
<entry>8.5.0</entry>
78+
<entry>
79+
Now throws a <exceptionname>TypeError</exceptionname> if any value of
80+
the <parameter>hints</parameter> array cannot be cast to int, and may
81+
throw a <exceptionname>ValueError</exceptionname> if any of these
82+
values overflow.
83+
</entry>
84+
</row>
7685
<row>
7786
<entry>8.0.0</entry>
7887
<entry>

reference/sockets/functions/socket-bind.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@
8686
</row>
8787
</thead>
8888
<tbody>
89+
<row>
90+
<entry>8.5.0</entry>
91+
<entry>
92+
Now throws a <exceptionname>ValueError</exceptionname> when
93+
<parameter>port</parameter> is lower than 0 or greater than 65535.
94+
</entry>
95+
</row>
8996
&sockets.changelog.socket-param;
9097
</tbody>
9198
</tgroup>

reference/sockets/functions/socket-create-listen.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
</row>
7575
</thead>
7676
<tbody>
77+
<row>
78+
<entry>8.5.0</entry>
79+
<entry>
80+
Now throws a <exceptionname>ValueError</exceptionname> when
81+
<parameter>port</parameter> is lower than 0 or greater than 65535.
82+
</entry>
83+
</row>
7784
<row>
7885
<entry>8.4.0</entry>
7986
<entry>

reference/sockets/functions/socket-create.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@
222222
</row>
223223
</thead>
224224
<tbody>
225+
<row>
226+
<entry>8.5.0</entry>
227+
<entry>
228+
Now supports creating <constant>AF_PACKET</constant> family sockets.
229+
</entry>
230+
</row>
225231
<row>
226232
<entry>8.0.0</entry>
227233
<entry>

reference/sockets/functions/socket-getsockname.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@
9090
</row>
9191
</thead>
9292
<tbody>
93+
<row>
94+
<entry>8.5.0</entry>
95+
<entry>
96+
Now retrieves the interface index and its string representation when
97+
used on an <constant>AF_PACKET</constant> family socket.
98+
</entry>
99+
</row>
93100
&sockets.changelog.socket-param;
94101
</tbody>
95102
</tgroup>

reference/sockets/functions/socket-sendto.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@
137137
</row>
138138
</thead>
139139
<tbody>
140+
<row>
141+
<entry>8.5.0</entry>
142+
<entry>
143+
Now throws a <exceptionname>ValueError</exceptionname> when
144+
<parameter>port</parameter> is lower than 0 or greater than 65535.
145+
</entry>
146+
</row>
140147
&sockets.changelog.socket-param;
141148
<row>
142149
<entry>8.0.0</entry>

reference/sockets/functions/socket-set-option.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@
9090
</row>
9191
</thead>
9292
<tbody>
93+
<row>
94+
<entry>8.5.0</entry>
95+
<entry>
96+
Now throws an exception when <constant>MCAST_LEAVE_GROUP</constant>
97+
or <constant>MCAST_LEAVE_SOURCE_GROUP</constant> is used and the
98+
value is not a valid object or array, and throws a
99+
<exceptionname>ValueError</exceptionname> when a multicast option is
100+
used on a socket that is not of <constant>AF_INET</constant> or
101+
<constant>AF_INET6</constant> family.
102+
</entry>
103+
</row>
93104
&sockets.changelog.socket-param;
94105
</tbody>
95106
</tgroup>

0 commit comments

Comments
 (0)