PHP Velho Oeste 2024

use_soap_error_handler

(PHP 5, PHP 7, PHP 8)

use_soap_error_handlerSOAP エラーハンドラを使用するかどうかを設定する

説明

use_soap_error_handler(bool $enable = true): bool

この関数は、SOAP サーバーで SOAP エラーハンドラを使用するかどうかを設定します。 それまでに設定されていた値を返します。 true に設定すると、 SoapServer アプリケーションでのエラーの詳細が SOAP フォールトメッセージとしてクライアントに送信されます。 false の場合は PHP の標準エラーハンドラを使います。 デフォルトは、エラーを SOAP フォールトメッセージとしてクライアントに送信します。

パラメータ

enable

true に設定すると、エラーの詳細をクライアントに送信します。

戻り値

元の値を返します。

参考

add a note add a note

User Contributed Notes 1 note

up
0
gs-design at yandex dot ru
9 years ago
"If FALSE, the standard PHP error handler is used. The default is to use the standard PHP error handler.",
but in declaration:
"bool use_soap_error_handler ([ bool $handler = true ] )".
So, what is the default value of $handler? And where is typo?
To Top