array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'gearmanworker.setoptions.php', 1 => 'GearmanWorker::setOptions', ), 'up' => array ( 0 => 'class.gearmanworker.php', 1 => 'GearmanWorker', ), 'prev' => array ( 0 => 'gearmanworker.setid.php', 1 => 'GearmanWorker::setId', ), 'next' => array ( 0 => 'gearmanworker.settimeout.php', 1 => 'GearmanWorker::setTimeout', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gearman/gearmanworker/setoptions.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL gearman >= 0.5.0)
GearmanWorker::setOptions — Set worker options
Sets one or more options to the supplied value.
option
The options to be set
总是返回 true
。