-
Notifications
You must be signed in to change notification settings - Fork 768
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
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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) | ||||||||||
</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> | ||||||||||
|
@@ -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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tabs usage?
Suggested change
|
||||||||||
</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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto tabs
Suggested change
|
||||||||||
</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
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
</simpara> | ||||||||||
</listitem> | ||||||||||
</varlistentry> | ||||||||||
<varlistentry xml:id="constant.mcast-block-source"> | ||||||||||
<term> | ||||||||||
<constant>MCAST_BLOCK_SOURCE</constant> | ||||||||||
|
@@ -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> | ||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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