<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.xml.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.xml-set-end-namespace-decl-handler.php',
    1 => 'xml_set_end_namespace_decl_handler',
    2 => 'Set up end namespace declaration handler',
  ),
  'up' => 
  array (
    0 => 'ref.xml.php',
    1 => 'XML Parser Функції',
  ),
  'prev' => 
  array (
    0 => 'function.xml-set-element-handler.php',
    1 => 'xml_set_element_handler',
  ),
  'next' => 
  array (
    0 => 'function.xml-set-external-entity-ref-handler.php',
    1 => 'xml_set_external_entity_ref_handler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xml/functions/xml-set-end-namespace-decl-handler.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.xml-set-end-namespace-decl-handler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xml_set_end_namespace_decl_handler</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">xml_set_end_namespace_decl_handler</span> &mdash; <span class="dc-title">Set up end namespace declaration handler</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.xml-set-end-namespace-decl-handler-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xml_set_end_namespace_decl_handler</strong></span>(<span class="methodparam"><span class="type"><a href="class.xmlparser.php" class="type XMLParser">XMLParser</a></span> <code class="parameter">$parser</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$handler</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Set a handler to be called when leaving the scope of a namespace
   declaration. This will be called, for each namespace declaration, after
   the handler for the end tag of the element in which the namespace was
   declared.
  </p>
  <div class="caution"><strong class="caution">Застереження</strong>
   <p class="para">
    This event is not supported under libXML, so a registered handler wouldn&#039;t
    be called.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xml-set-end-namespace-decl-handler-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
 <dt><code class="parameter">parser</code></dt>
 <dd>
  <p class="para">
   XML-парсер.
  </p>
 </dd>

    
     <dt><code class="parameter">handler</code></dt>
     <dd>
      <p class="para">
 Якщо задано <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, обробник буде скинуто до його початкового стану.
 <div class="warning"><strong class="warning">Увага</strong>
  <p class="simpara">
    Якщо задано порожній рядок, обробник також буде скинуто, проте така дія
    застаріла, починаючи з PHP 8.4.0.
  </p>
 </div>
</p>
<p class="para">
 Якщо параметр <code class="parameter">handler</code> має тип <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>, то
 обробником стане функція/метод, що має таку назву виклику.
</p>
<p class="para">
 Параметр <code class="parameter">handler</code> може мати тип <span class="type"><a href="language.types.string.php" class="type string">string</a></span>, якщо
 це назва метода об&#039;єкта, встановленого функцією
 <span class="function"><a href="function.xml-set-object.php" class="function">xml_set_object()</a></span>.
 <div class="warning"><strong class="warning">Увага</strong>
  <p class="simpara">
   Це є застарілим, починаючи з PHP 8.4.0.
  </p>
 </div>
</p>
<div class="warning"><strong class="warning">Увага</strong>
 <p class="simpara">
  Починаючи з PHP 8.4.0, назва виклику перевіряється на правильність під час
  встановлення обробника, а не під час його виклику. Це означає, що функцію
  <span class="function"><a href="function.xml-set-object.php" class="function">xml_set_object()</a></span> потрібно викликати перед встановленням
  назви метода, як зворотнього виклику. Однак, оскільки ця поведінка також є
  застарілою, починаючи з PHP 8.4.0, рекомендується використовувати правильну
  назву виклику (<span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>) методу.
 </p>
</div>

      <p class="para">
       The signature of the handler must be:
       <div class="methodsynopsis dc-description"><span class="methodname"><span class="replaceable">handler</span></span>(<span class="methodparam"><span class="type"><a href="class.xmlparser.php" class="type XMLParser">XMLParser</a></span> <code class="parameter">$parser</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span> <code class="parameter">$prefix</code></span>)</div>

       <dl>
        
 <dt><code class="parameter">parser</code></dt>
 <dd>
  <span class="simpara">
   XML-парсер, що викликає обробника.
  </span>
 </dd>

        
         <dt><code class="parameter">prefix</code></dt>
         <dd>
          <span class="simpara">
           The prefix is a string used to reference the namespace within an XML object.
           <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if no prefix exists.
          </span>
         </dd>
        
       </dl>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xml-set-end-namespace-decl-handler-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Завжди повертає <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.xml-set-end-namespace-decl-handler-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  Використання не-<span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> рядків (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>) як
  параметра <code class="parameter">handler</code> тепер є застарілим. Необхідно
  задавати правильну назву виклику методів або <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> для скидання обробника.
 </td>
</tr>

<tr>
 <td>8.4.0</td>
 <td>
  Правильність параметра <code class="parameter">handler</code>, як назви виклику
  (<span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>) тепер перевіряється на правильність під час
  встановлення обробника, а не під час його виклику.
 </td>
</tr>

     <tr>
 <td>8.0.0</td>
 <td>
  Тепер параметр <code class="parameter">parser</code> має бути примірником
  <span class="classname"><a href="class.xmlparser.php" class="classname">XMLParser</a></span>. Раніше очікувався
  <code class="literal">xml</code>-<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.xml-set-end-namespace-decl-handler-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.xml-set-start-namespace-decl-handler.php" class="function" rel="rdfs-seeAlso">xml_set_start_namespace_decl_handler()</a> - Set up start namespace declaration handler</span></li>
   </ul>
  </p>
 </div>


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