go to bug id or search bugs for
From manual page: https://php.net/gearmanjob.unique
GearmanJob->unique() will not return the value sent to Worker::construct unless you add the GEARMAN_WORKER_GRAB_UNIQ option through GearmanJob->addOption(..), which is highlighted in a comment on the article.
This feels like critical information that should be highlighted in GearmanJob documentation here and in language docs.
Add a Patch
Add a Pull Request
It seems to me that the most critical information which is
missing, is that PECL/gearman had its latest release almost 6
years ago (I doubt that it is PHP 7 compatible), and that the
linked source code repository has been archived.