]> granicus.if.org Git - php/commitdiff
Remove dead code in sockets extension [ci skip]
authorGeorge Peter Banyard <girgias@php.net>
Fri, 14 Jun 2019 17:01:02 +0000 (19:01 +0200)
committerJoe Watkins <krakjoe@php.net>
Sat, 15 Jun 2019 06:39:35 +0000 (08:39 +0200)
ext/sockets/conversions.c

index 7a1a4bb6bcb6f326a79014e26e694d36861cd084..cbddc9d096fb997e561d3f57446fbb62a3a4c546 100644 (file)
@@ -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);