From ce7edc9b3c7370f32fec0bc7a8ec3e29ed9a5f61 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 25 Mar 2009 00:34:59 -0400 Subject: Imported Upstream version 5.1.1 --- ext/soap/php_xml.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'ext/soap/php_xml.c') diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c index 35dc825cb..944610fbe 100644 --- a/ext/soap/php_xml.c +++ b/ext/soap/php_xml.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2004 The PHP Group | + | Copyright (c) 1997-2005 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.0 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,7 +17,7 @@ | Dmitry Stogov | +----------------------------------------------------------------------+ */ -/* $Id: php_xml.c,v 1.22 2004/02/13 15:19:09 dmitry Exp $ */ +/* $Id: php_xml.c,v 1.25 2005/08/03 14:07:48 sniper Exp $ */ #include "php_soap.h" #include "libxml/parser.h" @@ -76,15 +76,20 @@ static void soap_Comment(void *ctx, const xmlChar *value) { } -xmlDocPtr soap_xmlParseFile(const char *filename) +xmlDocPtr soap_xmlParseFile(const char *filename TSRMLS_DC) { 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.3