[php-src] master: sapi: pack globals struct

Gina Peter Banyard <[email protected]> Tue, 28 Jul 2026 07:54:17 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-28T08:53:13+01:00

Commit: https://github.com/php/php-src/commit/25159e0619cc6db79e6ffab3830c0d03cb777f36
Raw diff: https://github.com/php/php-src/commit/25159e0619cc6db79e6ffab3830c0d03cb777f36.diff

sapi: pack globals struct

Size goes from 632 to 624 bytes

Changed paths:
  M  main/SAPI.h


Diff:

diff --git a/main/SAPI.h b/main/SAPI.h
index 096774e08f4c..9536ced064db 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -134,13 +134,13 @@ typedef struct _sapi_globals_struct {
 	int64_t read_post_bytes;
 	bool post_read;
 	bool headers_sent;
+	bool sapi_started;
+	int options;
 	zend_stat_t global_stat;
 	char *default_mimetype;
 	char *default_charset;
 	HashTable *rfc1867_uploaded_files;
 	zend_long post_max_size;
-	int options;
-	bool sapi_started;
 	double global_request_time;
 	HashTable known_post_content_types;
 	zend_fcall_info_cache send_header_fcc;