Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<is_soap_faultSoapClient>
^SOAP FunctionsLast updated: Mon, 26 Oct 2026

use_soap_error_handler

(PHP 5, PHP 7, PHP 8)

use_soap_error_handler — Set whether to use the SOAP error handler

Description

function use_soap_error_handler(bool $enable = true): bool

This function sets whether or not to use the SOAP error handler in the SOAP server. It will return the previous value. If set to true, details of errors in a SoapServer application will be sent to the client as a SOAP fault message. If false, the standard PHP error handler is used. The default is to send error to the client as SOAP fault message.

Parameters

enable

Set to true to send error details to clients.

Return Values

Returns the original value.

See Also


<is_soap_faultSoapClient>
^SOAP FunctionsLast updated: Mon, 26 Oct 2026