Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 684afaa

Browse files
committedMar 28, 2025··
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
 

Diff for: ‎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)
Please sign in to comment.