ext/sockets: socket_get_option/socket_set_option SO_LINGER_SEC. (#14858)

9672cd9469 follow-up.
This commit is contained in:
David CARLIER 2024-07-07 14:23:01 +01:00 committed by GitHub
parent 23391f1fe7
commit 1db75d42bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";