|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64219 Hostname and port number not optional for GearmanClient::addServer()
Submitted: 2013-02-15 17:23 UTC Modified: 2017-01-10 08:23 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php at bitblit dot net Assigned:
Status: Suspended Package: gearman (PECL)
PHP Version: Irrelevant OS: Ubuntu LTS 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-02-15 17:23 UTC] php at bitblit dot net
From manual page:

Documentation clearly shows that hostname and port numbers are optional. However 
in practice, the function fails to connect with default values when they are left 

Test script:
$gearman_client = new \GearmanClient();
// call verify() function in my worker and send pathname
$task = $gearman_client->doNormal('verify', $pathname);

Expected result:
I expect to see my debug output from the worker but it never runs because Gearman 
never receives a connect (according to the Gearman log).

Actual result:
Apache error log contains:

[Fri Feb 15 11:55:38 2013] [error] [client] PHP Warning:  
GearmanClient::doNormal(): send_packet(GEARMAN_COULD_NOT_CONNECT) Failed to send 
server-options packet -> libgearman/


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-25 06:51 UTC]
-Assigned To: +Assigned To: hradtke
 [2017-01-10 08:23 UTC]
-Status: Assigned +Status: Suspended -Assigned To: hradtke +Assigned To:
 [2017-01-10 08:23 UTC]
The gearman extension have not had much activity in the past few years, so I'm taking the safe bet that this is no longer under active development (as I don't consider the typo fixes on the github repo an active development), besides that it also targets unsupported PHP versions. Please unsuspend this report in case it begins to blossom with life once more
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 00:01:28 2024 UTC