]> granicus.if.org Git - php/commitdiff
reduce the struct size by 8 byte on 64 bit
authorAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 23:12:12 +0000 (01:12 +0200)
committerAnatol Belski <ab@php.net>
Sat, 13 Sep 2014 23:12:12 +0000 (01:12 +0200)
ext/mysqlnd/mysqlnd_structs.h

index a01139489c20f6364440c6e7460319a2809b89be..d77ab7e9dde42f8b55e6b9b430607dab96e362fe 100644 (file)
@@ -1055,6 +1055,8 @@ struct st_mysqlnd_buffered_result_c
 
 struct st_mysqlnd_unbuffered_result
 {
+       struct st_mysqlnd_result_unbuffered_methods m;
+       uint64_t                        row_count;
 
        /* For unbuffered (both normal and PS) */
        zval                            *last_row_data;
@@ -1070,14 +1072,13 @@ struct st_mysqlnd_unbuffered_result
 
        struct st_mysqlnd_packet_row * row_packet;
 
-       uint64_t                        row_count;
+       unsigned int            field_count;
+
        zend_bool                       eof_reached;
 
-       unsigned int            field_count;
        zend_bool                       ps;
        zend_bool                       persistent;
 
-       struct st_mysqlnd_result_unbuffered_methods m;
 };