Skip to content

Commit fb81bdd

Browse files
committed
ext/phar: pad _phar_archive_data struct
This saves 16 bytes by going from 320 to 304 bytes
1 parent 6e6752f commit fb81bdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/phar/phar_internal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ struct _phar_archive_data {
246246
char *fname;
247247
uint32_t fname_len;
248248
/* for phar_detect_fname_ext, this stores the location of the file extension within fname */
249-
char *ext;
250249
uint32_t ext_len;
250+
char *ext;
251251
char *alias;
252-
uint32_t alias_len;
252+
uint32_t alias_len;
253253
char version[12];
254254
size_t halt_offset;
255255
HashTable manifest;
@@ -260,10 +260,10 @@ struct _phar_archive_data {
260260
uint32_t flags;
261261
uint32_t min_timestamp;
262262
uint32_t max_timestamp;
263+
int refcount;
263264
php_stream *fp;
264265
/* decompressed file contents are stored here */
265266
php_stream *ufp;
266-
int refcount;
267267
uint32_t sig_flags;
268268
uint32_t sig_len;
269269
char *signature;

0 commit comments

Comments
 (0)