mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
Adding bunch of FreeBSD socket options flags specifics.
SO_USER_COOKIE primarly to be traced via dtrace instrumentation. If SO_USER_COOKIE is available, the rest is so the former is two years old while the rest is from around 2008.
This commit is contained in:
committed by
Nikita Popov
parent
120137ca14
commit
4e87e56e22
@@ -256,6 +256,14 @@ PHP 7.4 UPGRADE NOTES
|
||||
. MB_ONIGURUMA_VERSION specifies the version of the oniguruma library against
|
||||
which mbregex has been built.
|
||||
|
||||
- Socket:
|
||||
. Added FreeBSD-specific socket options:
|
||||
. SO_LABEL
|
||||
. SO_PEERLABEL
|
||||
. SO_LISTENQLIMIT
|
||||
. SO_LISTENQLEN
|
||||
. SO_USER_COOKIE
|
||||
|
||||
- Tidy:
|
||||
. TIDY_TAG_ARTICLE
|
||||
. TIDY_TAG_ASIDE
|
||||
|
||||
@@ -781,6 +781,13 @@ static PHP_MINIT_FUNCTION(sockets)
|
||||
REGISTER_LONG_CONSTANT("SO_ERROR", SO_ERROR, CONST_CS | CONST_PERSISTENT);
|
||||
#ifdef SO_BINDTODEVICE
|
||||
REGISTER_LONG_CONSTANT("SO_BINDTODEVICE", SO_BINDTODEVICE, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
#ifdef SO_USER_COOKIE
|
||||
REGISTER_LONG_CONSTANT("SO_LABEL", SO_LABEL, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SO_PEERLABEL", SO_PEERLABEL, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SO_LISTENQLIMIT", SO_LISTENQLIMIT, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SO_LISTENQLEN", SO_LISTENQLEN, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SO_USER_COOKIE", SO_USER_COOKIE, CONST_CS | CONST_PERSISTENT);
|
||||
#endif
|
||||
REGISTER_LONG_CONSTANT("SOL_SOCKET", SOL_SOCKET, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("SOMAXCONN", SOMAXCONN, CONST_CS | CONST_PERSISTENT);
|
||||
|
||||
Reference in New Issue
Block a user