array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'gearmanjob.fail.php', 1 => 'GearmanJob::fail', ), 'up' => array ( 0 => 'class.gearmanjob.php', 1 => 'GearmanJob', ), 'prev' => array ( 0 => 'gearmanjob.exception.php', 1 => 'GearmanJob::exception', ), 'next' => array ( 0 => 'gearmanjob.functionname.php', 1 => 'GearmanJob::functionName', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gearman/gearmanjob/fail.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL gearman <= 0.5.0)
GearmanJob::fail — Send fail status (deprecated)
Sends failure status for this job, indicating that the job failed in a known way (as opposed to failing due to a thrown exception).
注意:
This method has been replaced by GearmanJob::sendFail() in the 0.6.0 release of the Gearman extension.
此函数没有参数。