diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-08-01 11:38:02 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-08-01 11:38:02 +0000 |
commit | 1066066436912ce5914b5f6bd22761b175637739 (patch) | |
tree | 19e62089f7cb75db935bd3143e1f43bd73283657 /ext/soap/php_xml.c | |
parent | cf6bb997237629d74389204642547e0c1d4484e8 (diff) | |
download | php-git-1066066436912ce5914b5f6bd22761b175637739.tar.gz |
Allow SOAP work when allow_url_fopen is turned off.
Diffstat (limited to 'ext/soap/php_xml.c')
-rw-r--r-- | ext/soap/php_xml.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |