Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

devnexen
Copy link
Member

No description provided.

@devnexen devnexen force-pushed the socket_ether_linux branch 6 times, most recently from 1c7ea4d to cb717cc Compare January 11, 2025 19:21
@devnexen devnexen marked this pull request as ready for review January 11, 2025 19:58
@devnexen devnexen requested a review from kocsismate as a code owner January 11, 2025 19:58
@devnexen devnexen requested a review from Girgias January 20, 2025 12:12
ext/sockets/sockets.c Outdated Show resolved Hide resolved
ext/sockets/tests/socket_afpacket.phpt Show resolved Hide resolved
ext/sockets/tests/socket_afpacket.phpt Outdated Show resolved Hide resolved
ext/sockets/sockets.c Outdated Show resolved Hide resolved
Comment on lines 2049 to 2055
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 {}
Copy link
Member

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

Copy link
Member Author

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 ?

Copy link
Member

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.

@devnexen devnexen force-pushed the socket_ether_linux branch 2 times, most recently from cf003e7 to f27a478 Compare January 20, 2025 18:29
Copy link
Member

@arnaud-lb arnaud-lb left a 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.)

@devnexen
Copy link
Member Author

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.

@devnexen devnexen closed this in 2ea386a Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants