array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'eventdnsbase.setoption.php', 1 => 'EventDnsBase::setOption', 2 => 'Set the value of a configuration option', ), 'up' => array ( 0 => 'class.eventdnsbase.php', 1 => 'EventDnsBase', ), 'prev' => array ( 0 => 'eventdnsbase.parseresolvconf.php', 1 => 'EventDnsBase::parseResolvConf', ), 'next' => array ( 0 => 'eventdnsbase.setsearchndots.php', 1 => 'EventDnsBase::setSearchNdots', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventdnsbase/setoption.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventDnsBase::setOption

(PECL event >= 1.2.6-beta)

EventDnsBase::setOptionSet the value of a configuration option

Опис

public EventDnsBase::setOption( string $option , string $value ): bool

Set the value of a configuration option.

Параметри

option

The currently available configuration options are: "ndots", "timeout", "max-timeouts", "max-inflight", and "attempts".

value

Option value.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.