Skip to content

Remove dead code in sockets extension #4264

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions ext/sockets/conversions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,13 +1015,6 @@ static void to_zval_read_control_array(const char *msghdr_c, zval *zv, res_conte
char *bufp = buf;
uint32_t i = 1;

/*if (msg->msg_flags & MSG_CTRUNC) {
php_error_docref0(NULL, E_WARNING, "The MSG_CTRUNC flag is present; will not "
"attempt to read control messages");
ZVAL_FALSE(zv);
return;
}*/

array_init(zv);

for (cmsg = CMSG_FIRSTHDR(msg);
Expand Down