From 1066066436912ce5914b5f6bd22761b175637739 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 1 Aug 2005 11:38:02 +0000 Subject: Allow SOAP work when allow_url_fopen is turned off. --- ext/soap/php_xml.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/soap/php_xml.c') diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index 3746c805e1..73035ee56c 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -80,11 +80,16 @@ xmlDocPtr soap_xmlParseFile(const char *filename) { xmlParserCtxtPtr ctxt = NULL; xmlDocPtr ret; + zend_bool old_allow_url_fopen; /* xmlInitParser(); */ + + old_allow_url_fopen = PG(allow_url_fopen); + PG(allow_url_fopen) = 1; ctxt = xmlCreateFileParserCtxt(filename); + PG(allow_url_fopen) = old_allow_url_fopen; if (ctxt) { ctxt->keepBlanks = 0; ctxt->sax->ignorableWhitespace = soap_ignorableWhitespace; -- cgit v1.2.1