File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments