Skip to content

Commit 1db75d4

Browse files
authored
ext/sockets: socket_get_option/socket_set_option SO_LINGER_SEC. (#14858)
9672cd9 follow-up.
1 parent 23391f1 commit 1db75d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/sockets/sockets.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,9 @@ PHP_FUNCTION(socket_get_option)
16931693

16941694
if (level == SOL_SOCKET) {
16951695
switch (optname) {
1696+
#ifdef SO_LINGER_SEC
1697+
case SO_LINGER_SEC:
1698+
#endif
16961699
case SO_LINGER:
16971700
optlen = sizeof(linger_val);
16981701

@@ -1901,6 +1904,9 @@ PHP_FUNCTION(socket_set_option)
19011904
}
19021905

19031906
switch (optname) {
1907+
#ifdef SO_LINGER_SEC
1908+
case SO_LINGER_SEC:
1909+
#endif
19041910
case SO_LINGER: {
19051911
const char l_onoff_key[] = "l_onoff";
19061912
const char l_linger_key[] = "l_linger";

0 commit comments

Comments
 (0)