Skip to content

Commit

Permalink
ext/sockets: adding BSD IP_BINDANY constant.
Browse files Browse the repository at this point in the history
Simply allows the socket to bind to any address, including one not
bound to any network interface.
  • Loading branch information
devnexen committed Feb 9, 2025
1 parent 4e55889 commit afaa643
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ext/sockets/sockets.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,13 @@
*/
const TCP_REPAIR = UNKNOWN;
#endif
#if defined(IP_BINDANY)
/**
* @var int
* @cvalue IP_BINDANY
*/
const IP_BINDANY = UNKNOWN;
#endif
#if defined(IP_DONTFRAG)
/**
* @var int
Expand Down
5 changes: 4 additions & 1 deletion ext/sockets/sockets_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit afaa643

Please sign in to comment.