<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcntl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.pcntl-async-signals.php',
    1 => 'pcntl_async_signals',
    2 => 'Enable/disable asynchronous signal handling or return the old setting',
  ),
  'up' => 
  array (
    0 => 'ref.pcntl.php',
    1 => 'Функції PCNTL',
  ),
  'prev' => 
  array (
    0 => 'function.pcntl-alarm.php',
    1 => 'pcntl_alarm',
  ),
  'next' => 
  array (
    0 => 'function.pcntl-errno.php',
    1 => 'pcntl_errno',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pcntl/functions/pcntl-async-signals.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pcntl-async-signals" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pcntl_async_signals</h1>
  <p class="verinfo">(PHP 7 &gt;= 7.1.0, PHP 8)</p><p class="refpurpose"><span class="refname">pcntl_async_signals</span> &mdash; <span class="dc-title">Enable/disable asynchronous signal handling or return the old setting</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.pcntl-async-signals-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pcntl_async_signals</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></span> <code class="parameter">$enable</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</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">
   If the <code class="parameter">enable</code> parameter is <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>,
   <span class="function"><strong>pcntl_async_signals()</strong></span> returns whether asynchronous signal
   handling is enabled. Otherwise, asynchronous signal handling is enabled or
   disabled.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pcntl-async-signals-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">enable</code></dt>
    <dd>
     <p class="para">
      Whether asynchronous signal handling should be enabled.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pcntl-async-signals-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   When used as getter (<code class="parameter">enable</code> parameter is <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>) it returns
   whether asynchronous signal handling is enabled. When used as setter (<code class="parameter">enable</code>
   parameter is not <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>), it returns whether asynchronous signal
   handling was enabled <em>before</em> the function call.
  </p>
 </div>


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

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">enable</code> is nullable now.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.pcntl-async-signals-seealso">
  <h3 class="title">Прогляньте також</h3>
  <ul class="simplelist">
   <li><a href="control-structures.declare.php" class="link">declare</a></li>
  </ul>
 </div>


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