Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44958 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96566 invoked from network); 14 Jul 2009 17:28:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2009 17:28:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=thomas@koch.ro; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=thomas@koch.ro; sender-id=unknown Received-SPF: error (pb1.pair.com: domain koch.ro from 93.90.184.107 cause and error) X-PHP-List-Original-Sender: thomas@koch.ro X-Host-Fingerprint: 93.90.184.107 koch.ro Linux 2.6 Received: from [93.90.184.107] ([93.90.184.107:39266] helo=ve825703057.providerbox.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/C6-54820-240CC5A4 for ; Tue, 14 Jul 2009 13:28:35 -0400 Received: from 234-86.78-83.cust.bluewin.ch ([83.78.86.234] helo=jona.localnet) by ve825703057.providerbox.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1MQlno-0003iG-VC; Tue, 14 Jul 2009 19:28:29 +0200 Organization: Young Media Concepts To: gearman , internals@lists.php.net Date: Tue, 14 Jul 2009 19:28:18 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.29-1-amd64; KDE/4.2.4; x86_64; ; ) X-Face: ##Diipbu!WHqpJ%Eb+k:m;]n%VcrM\f\MJ-:0\<0.r?ULf7g"kC!"Cg,o;D] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200907141928.20591.thomas@koch.ro> Subject: Multithreaded C Gearman worker to run PHP scripts From: thomas@koch.ro (Thomas Koch) 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 me to become better: http://github.com/thkoch2001/gearman-php-worker/tree/master More to come tomorrow... Thomas Koch, http://www.koch.ro YMC AG, http://www.ymc.ch