Doc #64219 [Asn->Sus]: Hostname and port number not optional for GearmanClient::addServer()

From: Date: Tue, 10 Jan 2017 08:23:20 +0000
Subject: Doc #64219 [Asn->Sus]: Hostname and port number not optional for GearmanClient::addServer()
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14321@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64219&edit=1 ID: 64219 Updated by: kalle@php.net Reported by: php at bitblit dot net Summary: Hostname and port number not optional for GearmanClient::addServer() -Status: Assigned +Status: Suspended Type: Documentation Problem Package: gearman Operating System: Ubuntu LTS 12.04 PHP Version: Irrelevant -Assigned To: hradtke +Assigned To: Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2013-02-15 17:23:57] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64219&edit=1

« previous php.doc.bugs (#14321) next »