array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'eventconfig.avoidmethod.php', 1 => 'EventConfig::avoidMethod', ), 'up' => array ( 0 => 'class.eventconfig.php', 1 => 'EventConfig', ), 'prev' => array ( 0 => 'class.eventconfig.php', 1 => 'EventConfig', ), 'next' => array ( 0 => 'eventconfig.construct.php', 1 => 'EventConfig::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventconfig/avoidmethod.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.2.6-beta)
EventConfig::avoidMethod — Tells libevent to avoid specific event method
Tells libevent to avoid specific event method(backend). See » Creating an event base .
method
The backend method to avoid. See EventConfig constants .
Beispiel #1 EventConfig::avoidMethod() example
<?php
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "'select' method avoided\n";
}
?>