From fceb95f12a0dcda2413d8938c2589f6dd9e9cb3f Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 13 Jan 2004 09:31:50 +0000 Subject: XML parsing warnings and notices were disabled. --- ext/soap/php_sdl.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/soap/php_sdl.c') 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); } -- cgit v1.2.1