Skip to content

Commit ceaede2

Browse files
ndosscheGirgias
andauthored
Apply suggestions from code review
Co-authored-by: Gina Peter Banyard <[email protected]>
1 parent 2b177cf commit ceaede2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/soap/php_xml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static xmlDocPtr soap_xmlParse_ex(xmlParserCtxtPtr ctxt)
9090
ctxt->sax->warning = NULL;
9191
ctxt->sax->error = NULL;
9292
/*ctxt->sax->fatalError = NULL;*/
93-
bool old = php_libxml_disable_entity_loader(1);
93+
bool old = php_libxml_disable_entity_loader(true);
9494
xmlParseDocument(ctxt);
9595
php_libxml_disable_entity_loader(old);
9696
if (ctxt->wellFormed) {
@@ -113,7 +113,7 @@ static xmlDocPtr soap_xmlParse_ex(xmlParserCtxtPtr ctxt)
113113
xmlDocPtr soap_xmlParseFile(const char *filename)
114114
{
115115
bool old_allow_url_fopen = PG(allow_url_fopen);
116-
PG(allow_url_fopen) = 1;
116+
PG(allow_url_fopen) = true;
117117
xmlParserCtxtPtr ctxt = xmlCreateFileParserCtxt(filename);
118118
PG(allow_url_fopen) = old_allow_url_fopen;
119119

0 commit comments

Comments
 (0)