php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at bitblit dot net
New email:
PHP Version: OS:

 

 [2013-02-15 17:23 UTC] php at bitblit dot net
Description:
------------
---
From manual page: http://www.php.net/gearmanclient.addserver#refsect1-
gearmanclient.addserver-description
---

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 
unspecified.

Test script:
---------------
$gearman_client = new \GearmanClient();
$gearman_client->addServer();
// 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 10.0.1.32] PHP Warning:  
GearmanClient::doNormal(): send_packet(GEARMAN_COULD_NOT_CONNECT) Failed to send 
server-options packet -> libgearman/connection.cc:430


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-25 06:51 UTC] hradtke@php.net
-Assigned To: +Assigned To: hradtke
 [2017-01-10 08:23 UTC] kalle@php.net
-Status: Assigned +Status: Suspended -Assigned To: hradtke +Assigned To:
 [2017-01-10 08:23 UTC] kalle@php.net
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 28 13:01:29 2024 UTC