Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP 8.4] sockets constant list update #4154

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 157 additions & 0 deletions reference/sockets/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,54 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-conn-dgram">
<term>
<constant>SOCK_CONN_DGRAM</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the socket to a connection-oriented datagram.
Available as of PHP 8.4.0 (NetBSD only)
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-dccp">
<term>
<constant>SOCK_DCCP</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the socket to a datagram congestion control protocol.
Available as of PHP 8.4.0 (NetBSD only)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a full stop at the end of the "Available as of PHP 8.4.0." for all the constants

Suggested change
Available as of PHP 8.4.0 (NetBSD only)
Available as of PHP 8.4.0. (NetBSD only)

</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-non-block">
<term>
<constant>SOCK_NON_BLOCK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the non-blocking socket status flag.
Available as of PHP 8.4.0
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.sock-cloexec">
<term>
<constant>SOCK_CLOEXEC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the close-on-exec socket status flag.
Available as of PHP 8.4.0
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.msg-oob">
<term>
<constant>MSG_OOB</constant>
Expand Down Expand Up @@ -2760,6 +2808,54 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange">
<term>
<constant>IP_PORTRANGE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Set the port range used for selecting a local port number.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Comment on lines +2818 to +2819
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tabs usage?

Suggested change
Set the port range used for selecting a local port number.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Set the port range used for selecting a local port number.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)

</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange-default">
<term>
<constant>IP_PORTRANGE_DEFAULT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Use the default range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Comment on lines +2830 to +2831
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto tabs

Suggested change
Use the default range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Use the default range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)

</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange-high">
<term>
<constant>IP_PORTRANGE_HIGH</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Use a high range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.ip-portrange-low">
<term>
<constant>IP_PORTRANGE_LOW</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Use a low range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Comment on lines +2854 to +2855
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use a low range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)
Use a low range of port values.
Available as of PHP 8.4.0 (FreeBSD/NetBSD/OpenBSD only)

</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.mcast-block-source">
<term>
<constant>MCAST_BLOCK_SOURCE</constant>
Expand Down Expand Up @@ -3000,6 +3096,67 @@
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-exclusiveaddr">
<term>
<constant>SO_EXCLUSIVEADDR</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Prevents other sockets from being forcibly bound to the same address and port.
Available as of PHP 8.4.0 (Windows only)
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-exclbind">
<term>
<constant>SO_EXCLBIND</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Enable/disable exclusive binding of the socket.
Available as of PHP 8.4.0 (Solaris only)
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-nosigpipe">
<term>
<constant>SO_NOSIGPIPE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Controls generation of SIGPIPE for the socket.
Available as of PHP 8.4.0 (macOs and FreeBSD only)
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-linger-sec">
<term>
<constant>SO_LINGER_SEC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Similar to <constant>SO_LINGER</constant> but lingering is in seconds
as opposed to time clicks on macOs.
Available as of PHP 8.4.0 (macOs only)
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.so-bindtoifindex">
<term>
<constant>SO_BINDTOIFINDEX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Bind a socket to a specific network interface by its index.
Available as of PHP 8.4.0
</simpara>
</listitem>
</varlistentry>
</variablelist>

</appendix>
Expand Down