Skip to content

Commit daaf373

Browse files
committed
ext/sockets: adding BSD IP_BINDANY constant.
Simply allows the socket to bind to any address, including one not bound to any network interface.
1 parent 60ee42e commit daaf373

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ext/sockets/sockets.stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,13 @@
19081908
*/
19091909
const TCP_REPAIR = UNKNOWN;
19101910
#endif
1911+
#if defined(IP_BINDANY)
1912+
/**
1913+
* @var int
1914+
* @cvalue IP_BINDANY
1915+
*/
1916+
const IP_BINDANY = UNKNOWN;
1917+
#endif
19111918
#if defined(IP_DONTFRAG)
19121919
/**
19131920
* @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)