Skip to content

Commit 684afaa

Browse files
committed
ext/date: Pack php_interval_obj
This reduces the size of the struct from 88 to 80 bytes.
1 parent 42a6652 commit 684afaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/date/php_date.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ static inline php_timezone_obj *php_timezone_obj_from_obj(zend_object *obj) {
8989
struct _php_interval_obj {
9090
timelib_rel_time *diff;
9191
int civil_or_wall;
92+
bool initialized;
9293
bool from_string;
9394
zend_string *date_string;
94-
bool initialized;
9595
zend_object std;
9696
};
9797

0 commit comments

Comments
 (0)