1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Shrink libxml_doc_props struct (#11326)

These values are only ever bools, store them as bools.
Reduces the size from 40 bytes to 16 bytes on my system.
This commit is contained in:
Niels Dossche
2023-05-29 11:41:42 +02:00
committed by GitHub
parent 2d883a6ff0
commit b8840115ff

View File

@@ -47,14 +47,14 @@ ZEND_BEGIN_MODULE_GLOBALS(libxml)
ZEND_END_MODULE_GLOBALS(libxml)
typedef struct _libxml_doc_props {
int formatoutput;
int validateonparse;
int resolveexternals;
int preservewhitespace;
int substituteentities;
int stricterror;
int recover;
HashTable *classmap;
bool formatoutput;
bool validateonparse;
bool resolveexternals;
bool preservewhitespace;
bool substituteentities;
bool stricterror;
bool recover;
} libxml_doc_props;
typedef struct _php_libxml_ref_obj {