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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {