I have tested a simple rename to pecl-gearman-1.1.2.ebuild and it appears to work. This fixes several issues with gearmand and addresses #540322. Reproducible: Always
This does not add support for php-7+ This is currently the most promising repo: https://github.com/wcgallego/pecl-gearman
Created attachment 480812 [details] pecl-gearman-1.1.2.ebuild I am successfully compiling 1.1.2 against gearmand-1.1.16 (see bug #540322) and it is partially working. The issue is with pecl-gearman worker class adding servers and functions. I am unable to identify the cause: PHP Warning: GearmanWorker::addServers(): (null) in ... PHP Warning: GearmanWorker::addFunction(): Unable to add function to Gearman Worker: (null) GEARMAN_INVALID_ARGUMENT in ...
(In reply to Alex Barker from comment #2) > Created attachment 480812 [details] > pecl-gearman-1.1.2.ebuild > > PHP Warning: GearmanWorker::addServers(): (null) in ... > PHP Warning: GearmanWorker::addFunction(): Unable to add function to > Gearman Worker: (null) GEARMAN_INVALID_ARGUMENT in ... The ebuild is working correctly. The issue I experienced is a bug with the interaction of pthreads and gearman worker. It seems to soil the pants only if the GearmanWorker class is a member variable of a class that extends Stackable! I.E. ` ``` class MyWorker extends Stackable { /** @var GearmanWorker $gearman */ protected $gearman; public function __construct() { $this->gearman = new GearmanWorker(); // Poops pants here. $this->gearman->addServer("127.0.0.1", 4730); } ... } ```
removed