php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64954 GearmanClient::runTasks() doesn't work when completeCallback setted
Submitted: 2013-05-31 13:04 UTC Modified: 2013-10-15 11:54 UTC
From: zarincheg at gmail dot com Assigned:
Status: No Feedback Package: gearman (PECL)
PHP Version: 5.4.15 OS: Kubuntu Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
45 - 25 = ?
Subscribe to this entry?

 
 [2013-05-31 13:04 UTC] zarincheg at gmail dot com
Description:
------------
I got strange case with using callbacks. For example I try to test code below.

When it's runs, I gets up an error like this: 
Warning: GearmanClient::runTasks(): gearman_wait(GEARMAN_NO_ACTIVE_FDS) no active 
file descriptors -> libgearman/universal.cc:253 in 
/home/zarin/tests/callbackTest.php on line 26

But, If I will uncomment method ChildClient::complete(), code will works good. 
Firstly I figure that is PHP problem, but I tried any test-cases with inheritance 
and callbacks. And that tests worked good. I'am have not ideas about solving this 
problem.

Test script:
---------------
https://gist.github.com/zarincheg/09874e5f55c49190ad85


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-31 14:38 UTC] hradtke@php.net
-Status: Open +Status: Feedback
 [2013-05-31 14:38 UTC] hradtke@php.net
What version of pecl/gearman and what version of libgearman?
 [2013-05-31 19:11 UTC] zarincheg at gmail dot com
libgearman version: 1.1.2
gearman pecl version: 1.1.0
 [2013-10-15 11:54 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 18:01:30 2024 UTC