Skip to content

Commit cfdca10

Browse files
Girgiaskrakjoe
authored andcommitted
Remove dead code in sockets extension [ci skip]
1 parent afdf7ed commit cfdca10

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/sockets/conversions.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,13 +1015,6 @@ static void to_zval_read_control_array(const char *msghdr_c, zval *zv, res_conte
10151015
char *bufp = buf;
10161016
uint32_t i = 1;
10171017

1018-
/*if (msg->msg_flags & MSG_CTRUNC) {
1019-
php_error_docref0(NULL, E_WARNING, "The MSG_CTRUNC flag is present; will not "
1020-
"attempt to read control messages");
1021-
ZVAL_FALSE(zv);
1022-
return;
1023-
}*/
1024-
10251018
array_init(zv);
10261019

10271020
for (cmsg = CMSG_FIRSTHDR(msg);

0 commit comments

Comments
 (0)