]> granicus.if.org Git - php/commitdiff
reduce the struct size by 8 byte on 64 bit
authorAnatol Belski <ab@php.net>
Sun, 14 Sep 2014 07:40:56 +0000 (09:40 +0200)
committerAnatol Belski <ab@php.net>
Sun, 14 Sep 2014 07:40:56 +0000 (09:40 +0200)
ext/mysqlnd/mysqlnd_wireprotocol.h

index b40808d5953e89ca3a90bcc4bdd429e8bd13e840..c64e6ccc78aeeb9ea25f3bab84139a653be51775 100644 (file)
@@ -90,20 +90,20 @@ typedef struct st_mysqlnd_packet_greet {
 /* Client authenticates */
 typedef struct st_mysqlnd_packet_auth {
        MYSQLND_PACKET_HEADER           header;
-       uint32_t        client_flags;
-       uint32_t        max_packet_size;
-       uint8_t         charset_no;
        const char      *user;
        const zend_uchar        *auth_data;
        size_t          auth_data_len;
        const char      *db;
        const char      *auth_plugin_name;
+       uint32_t        client_flags;
+       uint32_t        max_packet_size;
+       uint8_t         charset_no;
        /* Here the packet ends. This is user supplied data */
-       size_t          db_len;
        zend_bool       send_auth_data;
        zend_bool       is_change_user_packet;
        zend_bool       silent;
        HashTable       *connect_attr;
+       size_t          db_len;
 } MYSQLND_PACKET_AUTH;
 
 /* Auth response packet */