summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-01-13 09:31:50 +0000
committerDmitry Stogov <dmitry@php.net>2004-01-13 09:31:50 +0000
commitfceb95f12a0dcda2413d8938c2589f6dd9e9cb3f (patch)
tree1f7f254587d52d4daf7f7cd1bb60cc3f6f50b85e /ext/soap/php_sdl.c
parent51c86ab73f7d61f547593afbd6edd5f3f022f9ba (diff)
downloadphp-git-fceb95f12a0dcda2413d8938c2589f6dd9e9cb3f.tar.gz
XML parsing warnings and notices were disabled.
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 507f5619f0..f89d8a5135 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -647,12 +647,19 @@ static void load_wsdl_ex(char *struri, sdlCtx *ctx, int include)
xmlDocPtr wsdl;
xmlNodePtr root, definitions, trav;
xmlAttrPtr targetNamespace;
+ int old_error_reporting;
/* TODO: WSDL Caching */
+ old_error_reporting = EG(error_reporting);
+ EG(error_reporting) &= ~(E_WARNING|E_NOTICE|E_USER_WARNING|E_USER_NOTICE);
+
wsdl = xmlParseFile(struri);
xmlCleanupParser();
+ EG(error_reporting) = old_error_reporting;
+
+
if (!wsdl) {
php_error(E_ERROR, "SOAP-ERROR: Parsing WSDL: Couldn't load from %s", struri);
}