]> granicus.if.org Git - php/commitdiff
Reorder to save alignment size (of course, only for common used structs)
authorXinchen Hui <laruence@php.net>
Mon, 15 Dec 2014 06:06:19 +0000 (01:06 -0500)
committerXinchen Hui <laruence@php.net>
Mon, 15 Dec 2014 06:44:53 +0000 (01:44 -0500)
main/php_streams.h

index 77a2234d9289ef30fc2e5c41c3166934fd41d579..79ceaf2761c90227b3631cadd4c0812ce23696c6 100644 (file)
@@ -210,6 +210,8 @@ struct _php_stream  {
        zend_resource *ctx;
        int flags;      /* PHP_STREAM_FLAG_XXX */
 
+       int eof;
+
        /* buffer */
        zend_off_t position; /* of underlying stream */
        unsigned char *readbuf;
@@ -220,8 +222,6 @@ struct _php_stream  {
        /* how much data to read when filling buffer */
        size_t chunk_size;
 
-       int eof;
-
 #if ZEND_DEBUG
        const char *open_filename;
        uint open_lineno;