<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.swoole-runtime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'swoole-runtime.set-hook-flags.php',
    1 => 'Swoole\\Runtime::setHookFlags',
    2 => 'Set hook flags for coroutine',
  ),
  'up' => 
  array (
    0 => 'class.swoole-runtime.php',
    1 => 'Swoole\\Runtime',
  ),
  'prev' => 
  array (
    0 => 'swoole-runtime.get-hook-flags.php',
    1 => 'Swoole\\Runtime::getHookFlags',
  ),
  'next' => 
  array (
    0 => 'class.swoole-serialize.php',
    1 => 'Swoole\\Serialize',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/swoole/runtime/setHookFlags.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="swoole-runtime.set-hook-flags" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Swoole\Runtime::setHookFlags</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Swoole\Runtime::setHookFlags</span> &mdash; <span class="dc-title">Set hook flags for coroutine</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-swoole-runtime.set-hook-flags-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Swoole\Runtime::setHookFlags</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Sets the hook flags for coroutine support.
   This dynamically changes the hook flags at runtime.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swoole-runtime.set-hook-flags-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">flags</code></dt>
    <dd>
     <p class="para">
      Bitmask of flags specifying which functions to hook. Same flags as enableCoroutine.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swoole-runtime.set-hook-flags-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>

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