Skip to content

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Oct 5, 2025

Extract sockets changes from #20066

--TEST--
socket_recvfrom() with IPv6 socket missing port argument
--EXTENSIONS--
sockets
Copy link
Member

@devnexen devnexen Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think you need ipv6_skipif.inc for this one.

if (arg6 == NULL) {
zend_string_efree(recv_buf);
WRONG_PARAM_COUNT;
zend_argument_value_error(6, "must be specified when argument #1 ($socket) is of type AF_INET or AF_INET6");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should stay ArgumentCountError, especially since it's an out parameter.

How about:

socket_recvfrom() expects exactly 6 arguments when argument #1 ($socket) is of type AF_INET or AF_INET6, $x given.

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.

3 participants