]> granicus.if.org Git - php/commitdiff
Remove unused variable
authorAndrey Hristov <andrey@php.net>
Mon, 23 Nov 2015 10:36:05 +0000 (11:36 +0100)
committerAndrey Hristov <andrey@php.net>
Mon, 23 Nov 2015 10:36:25 +0000 (11:36 +0100)
ext/mysqlnd/mysqlnd_connection.c
ext/mysqlnd/mysqlnd_structs.h

index 32121640310abf7590c58850d1ca61b15b0ae8f2..910420bfe96bee06005d2ca36f747a726dddc6a0 100644 (file)
@@ -753,8 +753,6 @@ MYSQLND_METHOD(mysqlnd_conn_data, connect)(MYSQLND_CONN_DATA * conn,
                        }
                        conn->unix_socket.l = strlen(conn->unix_socket.s);
                }
-               conn->max_packet_size   = MYSQLND_ASSEMBLED_PACKET_MAX_SIZE;
-               /* todo: check if charset is available */
 
                SET_EMPTY_ERROR(conn->error_info);
 
index 3df7c61f2615d53635421b4fd9807efcbc552701..bdcf29f7aadace85383ceec9d3b06f6cfdbec6ca 100644 (file)
@@ -890,7 +890,6 @@ struct st_mysqlnd_connection_data
        MYSQLND_STRING  connect_or_select_db;
        MYSQLND_INFILE  infile;
        unsigned int    protocol_version;
-       zend_ulong              max_packet_size;
        unsigned int    port;
        zend_ulong              server_capabilities;