Skip to content

Commit 645af9f

Browse files
committed
ext/sockets: adding solaris/illumos SO_EXCLBIND constant.
when set to "true", neutralises the effect of SO_REUSEADDR/SO_REUSEPORT making the socket binding exclusive. Close GH-13912
1 parent 11d3ded commit 645af9f

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ PHP NEWS
195195
. Added multicast group support for ipv4 on FreeBSD. ([email protected])
196196
. Added the TCP_SYNCNT constant for Linux to set number of attempts to send
197197
SYN packets from the client. (David Carlier)
198+
. Added the SO_EXCLBIND constant for exclusive socket binding on illumos/solaris.
199+
(David Carlier)
198200

199201
- SNMP:
200202
. Removed the deprecated inet_ntoa call support. (David Carlier)

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ PHP 8.4 UPGRADE NOTES
570570
. SOCK_CONN_DGRAM (NetBSD only).
571571
. SOCK_DCCP (NetBSD only).
572572
. TCP_SYNCNT (Linux only).
573+
. SO_EXCLBIND (Solaris/Illumos only).
573574

574575
- Sodium:
575576
. SODIUM_CRYPTO_AEAD_AEGIS128L_KEYBYTES

ext/sockets/sockets.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,13 @@
410410
*/
411411
const SO_BPF_EXTENSIONS = UNKNOWN;
412412
#endif
413+
#ifdef SO_EXCLBIND
414+
/**
415+
* @var int
416+
* @cvalue SO_EXCLBIND
417+
*/
418+
const SO_EXCLBIND = UNKNOWN;
419+
#endif
413420
#ifdef SKF_AD_OFF
414421
/**
415422
* @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)