|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-27 17:05 UTC] james dot butler at edigitalresearch dot com
[2011-01-27 18:06 UTC] nvpetlin at gmail dot com
[2011-01-27 18:11 UTC] nvpetlin at gmail dot com
[2011-01-28 12:21 UTC] james dot butler at edigitalresearch dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 20:00:01 2025 UTC |
Description: ------------ When assigning a unique identifier by running doBackground(name,data,id) it cannot be retrieved at the other end in the worker function. Reproduce code: --------------- --- worker.php <?php $worker= new GearmanWorker(); $worker->addServer(); $worker->addFunction("title", "title_function"); while ($worker->work()); function title_function($job) { var_dump($job->unique()); return ucwords(strtolower($job->workload())); } --- client.php <?php $client = new GearmanClient(); $client->addServers('uslx1'); print $client->doBackground('title', "AlL THE World's a sTagE",'unique'); print "\n"; Expected result: ---------------- string "unique" job handle Actual result: -------------- string(0) "" job handle