-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ext/sockets: linux AF_PACKET support. #17440
Conversation
1c7ea4d
to
cb717cc
Compare
ext/sockets/sockets.stub.php
Outdated
function socket_getsockname(Socket $socket, &$address, ?int &$objint = null): bool {} | ||
|
||
/** | ||
* @param string $address | ||
* @param int $port | ||
*/ | ||
function socket_getpeername(Socket $socket, &$address, &$port = null): bool {} | ||
function socket_getpeername(Socket $socket, &$address, ?int &$objint = null): bool {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a BC break due to named parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean UPGRADING entry ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wanted to make sure that you noticed the breaking change: existing code like socket_getpeername($socket, $address, port: $port)
will stop working.
I'm not sure what our policy is regarding those, but I think that sending an email to internals to check for objections would be worth it.
cf003e7
to
f27a478
Compare
f27a478
to
9f2b2f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Do you plan to implement the commented parts separately? (These parts should be omitted from the merge, I think.)
Yes that s, at least, a 3 parts plan, this is just to TODO list. But I can always remove these if that s really an issue. |
No description provided.