From ad34c85f513f1352d5005882e11f65229e98659b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 1 Sep 2008 14:55:42 +0000 Subject: [PATCH] Disabled warning messages in SoapClient constructor --- ext/soap/soap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.50.1