Examples out of date
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
New
|
Undecided
|
Unassigned |
Bug Description
Some of the code in the examples folder appears to be out of date.
I'm a PHP person, so I could be wrong here. I got here seeing that the PHP documentation is also out of date and found it was simply based on the example C++ code.
According to the Changelog http://
reverse_client.cc has code to get back the status, but as best as I can tell, this doesn't actually work anymore.
=======
do
{
size_t result_size;
char *result;
result= (char *)gearman_
if (ret == GEARMAN_WORK_DATA)
{
std:
free(result);
continue;
}
else if (ret == GEARMAN_
{
uint32_t numerator;
uint32_t denominator;
gearman_
std::clog << "Status: " << numerator << "/" << denominator << std::endl;
continue;
}
else if (ret == GEARMAN_SUCCESS)
{
std:
free(result);
}
else if (ret == GEARMAN_WORK_FAIL)
{
gearmand:
exit_code= EXIT_FAILURE;
break;
}
else
{
gearmand:
exit_code= EXIT_FAILURE;
break;
}
--count;
} while (count);
=======
From my reading of the _cliend_do function http://
Again, I'm a PHP person, so I may be wrong here. I know this is likely a low priority, but if someone could at least just confirm my understanding I'll be happy for now.
Thanks for the amazing tool!