mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02: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:
parent
2d883a6ff0
commit
b8840115ff
1 changed files with 7 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue