ext/sockets: socket_getpeername/socket_getsockname BC
| From: | David CARLIER | Date: | Wed, 29 Jan 2025 03:20:15 +0000 |
| Subject: | ext/sockets: socket_getpeername/socket_getsockname BC | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-126228@lists.php.net to get a copy of this message | ||
Hi,
Working on this PR #17440 <https://github.com/php/php-src/pull/17440>,
I
wanted to ask if the BC from these two calls
were ok because :
Before
function socket_getsockname(Socket $socket, &$address, *&$port = null*):
bool {}
After
function socket_getsockname(Socket $socket, &$address, *?int &$objint =
null*): bool {}
As it is no longer only used for port but also for. interface address index
in the case of AF_PACKET.
Thanks.
Regards.