Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<GearmanTask::jobHandleGearmanTask::returnCode>
^GearmanTaskLast updated: Mon, 26 Oct 2026

GearmanTask::recvData

(PECL gearman >= 0.5.0)

GearmanTask::recvData — Read work or result data into a buffer for a task

Description

public function GearmanTask::recvData(int $data_len): false|array

Warning

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

Parameters

data_len

Length of data to be read.

Return Values

An array whose first element is the length of data read and the second is the data buffer. Returns false if the read failed.

See Also


<GearmanTask::jobHandleGearmanTask::returnCode>
^GearmanTaskLast updated: Mon, 26 Oct 2026