<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.soap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.use-soap-error-handler.php',
    1 => 'use_soap_error_handler',
    2 => 'SOAP エラーハンドラを使用するかどうかを設定する',
  ),
  'up' => 
  array (
    0 => 'ref.soap.php',
    1 => 'SOAP 関数',
  ),
  'prev' => 
  array (
    0 => 'function.is-soap-fault.php',
    1 => 'is_soap_fault',
  ),
  'next' => 
  array (
    0 => 'class.soapclient.php',
    1 => 'SoapClient',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/soap/functions/use-soap-error-handler.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.use-soap-error-handler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">use_soap_error_handler</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">use_soap_error_handler</span> &mdash; <span class="dc-title">SOAP エラーハンドラを使用するかどうかを設定する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.use-soap-error-handler-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>use_soap_error_handler</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$enable</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   この関数は、SOAP サーバーで SOAP エラーハンドラを使用するかどうかを設定します。
   それまでに設定されていた値を返します。
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> に設定すると、
   <span class="classname"><a href="class.soapserver.php" class="classname">SoapServer</a></span> アプリケーションでのエラーの詳細が
   SOAP フォールトメッセージとしてクライアントに送信されます。
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> の場合は PHP の標準エラーハンドラを使います。
   デフォルトは、エラーを SOAP フォールトメッセージとしてクライアントに送信します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.use-soap-error-handler-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">enable</code></dt>
     <dd>
      <p class="para">
       <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> に設定すると、エラーの詳細をクライアントに送信します。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.use-soap-error-handler-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   元の値を返します。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.use-soap-error-handler-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.set-error-handler.php" class="function" rel="rdfs-seeAlso">set_error_handler()</a> - ユーザー定義のエラーハンドラ関数を設定する</span></li>
    <li><span class="function"><a href="function.set-exception-handler.php" class="function" rel="rdfs-seeAlso">set_exception_handler()</a> - ユーザー定義の例外ハンドラ関数を設定する</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>