[TYPO3-dev] [SOLVED] Re: try and catch a soap warning...
Jigal van Hemert
jigal at xs4all.nl
Tue Jan 19 16:30:00 CET 2010
Thanks for the answers!
Martin Kutschker wrote:
> Jigal van Hemert schrieb:
>> Any ideas on how to prevent the warnings from being displayed with a
>> try/catch construction?
>
> In the code above you could try using "new @SoapClient".
If only live would be so simple...
new @SoapClient : syntax error
@new SoapClient : this surpresses the warnings!
> Or you can turn of the warnings before creating the soap client (and turn them on afterwards).
That was my third option.
"Funny" how PHP throws an exception and *still* displays error messages...
Regards, Jigal.
More information about the TYPO3-dev
mailing list