Skip to content

Commit 6c532df

Browse files
committed
ext/sockets adding FreeBSD's SO_REUSEPORT_LB constant.
SO_REUSEPORT_LB is, in fact, closer to the classical Linux's SO_REUSEPORT. Close GH-11038
1 parent 421c56d commit 6c532df

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
@@ -149,6 +149,7 @@ PHP NEWS
149149
. Added SO_RERROR, SO_ZEROIZE and SO_SPLICE netbsd and openbsd constants.
150150
(David Carlier)
151151
. Added TCP_REPAIR for quietly close a connection. (David Carlier)
152+
. Added SO_REUSEPORT_LB freebsd constant. (David Carlier)
152153

153154
- Standard:
154155
. 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
@@ -214,6 +214,7 @@ PHP 8.3 UPGRADE NOTES
214214
. SO_ZEROIZE (OpenBSD only).
215215
. SO_SPLICE (OpenBSD only).
216216
. TCP_REPAIR (Linux only).
217+
. SO_REUSEPORT_LB (FreeBSD only).
217218

218219
========================================
219220
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
@@ -173,6 +173,13 @@
173173
*/
174174
const SO_REUSEPORT = UNKNOWN;
175175
#endif
176+
#ifdef SO_REUSEPORT_LB
177+
/**
178+
* @var int
179+
* @cvalue SO_REUSEPORT_LB
180+
*/
181+
const SO_REUSEPORT_LB = UNKNOWN;
182+
#endif
176183
/**
177184
* @var int
178185
* @cvalue SO_KEEPALIVE

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)