Skip to content

Commit 5b35740

Browse files
authored
Sync #if/ifdef/defined for LIBXML_EXPAT_COMPAT (#14435)
This one can be undefined or defined to value 1.
1 parent c8a8d8a commit 5b35740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/xml/xml.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static int xml_parse_helper(xml_parser *parser, const char *data, size_t data_le
270270
ZEND_ASSERT(!parser->isparsing);
271271

272272
/* libxml2 specific options */
273-
#if LIBXML_EXPAT_COMPAT
273+
#ifdef LIBXML_EXPAT_COMPAT
274274
/* See xmlInitSAXParserCtxt() and xmlCtxtUseOptions() */
275275
if (parser->parsehuge) {
276276
parser->parser->parser->options |= XML_PARSE_HUGE;

0 commit comments

Comments
 (0)