com php-src: Reorder to save alignment size (of course, only for common used structs): main/php_streams.h
| From: | Xinchen Hui | Date: | Mon, 15 Dec 2014 06:44:53 +0000 |
| Subject: | com php-src: Reorder to save alignment size (of course, only for common used structs): main/php_streams.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83698@lists.php.net to get a copy of this message | ||
Commit: 7081c9bca60e7f3e89b1dbbe771ca2194923a84f
Author: Xinchen Hui <laruence@php.net> Mon, 15 Dec 2014 01:06:19 -0500
Parents: 8f177fde907b632f7951f4939012bf1da4c77d15
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7081c9bca60e7f3e89b1dbbe771ca2194923a84f
Log:
Reorder to save alignment size (of course, only for common used structs)
Changed paths:
M main/php_streams.h
Diff:
diff --git a/main/php_streams.h b/main/php_streams.h
index 77a2234..79ceaf2 100644
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -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;