As Johannes suggested (thx!) I made a gearman_worker sapi:
http://github.com/thkoch2001/php-
src/tree/857657ddce9aad9709cc39832fb716555021725c/sapi/gearman_worker
(or http://tinyurl.com/gearmanworkersapi )
and linked the old code against it:
http://github.com/thkoch2001/gearman-php-worker/
It
Can you explain how this is different from the worker class provided by
pecl/gearman?
-Andrei
On Tue, Jul 14, 2009 at 10:28 AM, Thomas Koch wrote:
> Good evening Europe, good morning America,
>
> I hacked a gearman worker today that runs PHP scripts. As you can easily
> spot
> on first sight, I
Hi,
On Tue, 2009-07-14 at 19:28 +0200, Thomas Koch wrote:
> So I'm happy for anybody interested to look over my work and help me to
> become
> better:
> http://github.com/thkoch2001/gearman-php-worker/tree/master
You are wrapping every call inside PHP_EMBED_START_BLOCK/_END_BLOCK
calls. By this
Good evening Europe, good morning America,
I hacked a gearman worker today that runs PHP scripts. As you can easily spot
on first sight, I don't have many clues on C, threads and PHP internals. But
it seems to kind of work. :-)
So I'm happy for anybody interested to look over my work and help m