mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/sockets: socket_get_option/socket_set_option SO_LINGER_SEC. (#14858)
9672cd9469
follow-up.
This commit is contained in:
parent
23391f1fe7
commit
1db75d42bb
1 changed files with 6 additions and 0 deletions
|
@ -1693,6 +1693,9 @@ PHP_FUNCTION(socket_get_option)
|
|||
|
||||
if (level == SOL_SOCKET) {
|
||||
switch (optname) {
|
||||
#ifdef SO_LINGER_SEC
|
||||
case SO_LINGER_SEC:
|
||||
#endif
|
||||
case SO_LINGER:
|
||||
optlen = sizeof(linger_val);
|
||||
|
||||
|
@ -1901,6 +1904,9 @@ PHP_FUNCTION(socket_set_option)
|
|||
}
|
||||
|
||||
switch (optname) {
|
||||
#ifdef SO_LINGER_SEC
|
||||
case SO_LINGER_SEC:
|
||||
#endif
|
||||
case SO_LINGER: {
|
||||
const char l_onoff_key[] = "l_onoff";
|
||||
const char l_linger_key[] = "l_linger";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue