Sync #if/ifdef/defined for LIBXML_EXPAT_COMPAT (#14435)

This one can be undefined or defined to value 1.
This commit is contained in:
Peter Kokot 2024-06-02 15:39:42 +02:00 committed by GitHub
parent c8a8d8aba3
commit 5b35740098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,7 +270,7 @@ static int xml_parse_helper(xml_parser *parser, const char *data, size_t data_le
ZEND_ASSERT(!parser->isparsing); ZEND_ASSERT(!parser->isparsing);
/* libxml2 specific options */ /* libxml2 specific options */
#if LIBXML_EXPAT_COMPAT #ifdef LIBXML_EXPAT_COMPAT
/* See xmlInitSAXParserCtxt() and xmlCtxtUseOptions() */ /* See xmlInitSAXParserCtxt() and xmlCtxtUseOptions() */
if (parser->parsehuge) { if (parser->parsehuge) {
parser->parser->parser->options |= XML_PARSE_HUGE; parser->parser->parser->options |= XML_PARSE_HUGE;