Skip to content

Commit fbaa2eb

Browse files
committed
ext/sockets: add TCP_REPAIR to silently close a connection.
Closes GH-10724.
1 parent c7637ed commit fbaa2eb

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ PHP NEWS
117117
. Added SOL_UPDLITE, UDPLITE_RECV_CSCOV and UDPLITE_SEND_CSCOV for updlite
118118
protocol support. (David Carlier)
119119
. Added SO_RERROR, SO_ZEROIZE and SO_SPLICE netbsd and openbsd constants.
120+
. Added TCP_REPAIR for quietly close a connection.
120121

121122
- Standard:
122123
. E_NOTICEs emitted by unserialize() have been promoted to E_WARNING. (timwolla)

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ PHP 8.3 UPGRADE NOTES
170170
. SO_RERROR (NetBSD only).
171171
. SO_ZEROIZE (OpenBSD only).
172172
. SO_SPLICE (OpenBSD only).
173+
. TCP_REPAIR (Linux only).
173174

174175
========================================
175176
11. Changes to INI File Handling

ext/sockets/sockets.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,13 @@
17411741
*/
17421742
const TCP_QUICKACK = UNKNOWN;
17431743
#endif
1744+
#if defined(TCP_REPAIR)
1745+
/**
1746+
* @var int
1747+
* @cvalue TCP_REPAIR
1748+
*/
1749+
const TCP_REPAIR = UNKNOWN;
1750+
#endif
17441751
#if defined(IP_DONTFRAG)
17451752
/**
17461753
* @var int

ext/sockets/sockets_arginfo.h

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)