From: Dmitry Stogov Date: Mon, 1 Sep 2008 14:55:42 +0000 (+0000) Subject: Disabled warning messages in SoapClient constructor X-Git-Tag: BEFORE_HEAD_NS_CHANGE~497 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad34c85f513f1352d5005882e11f65229e98659b;p=php Disabled warning messages in SoapClient constructor --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 126e03b8db..2c0c957dc9 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -2685,7 +2685,10 @@ static void soap_error_handler(int error_num, const char *error_filename, const EG(objects_store).object_buckets = old_objects; PG(display_errors) = old; zend_bailout(); - } else { + } else if (!client->exceptions || + !SOAP_GLOBAL(error_code) || + strcmp(SOAP_GLOBAL(error_code),"WSDL") != 0) { + /* Ignore libxml warnings during WSDL parsing */ call_old_error_handler(error_num, error_filename, error_lineno, format, args); } } else {