Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47501 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19129 invoked from network); 23 Mar 2010 19:37:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2010 19:37:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.82.42 mail-ww0-f42.google.com Received: from [74.125.82.42] ([74.125.82.42:56086] helo=mail-ww0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/79-03444-09819AB4 for ; Tue, 23 Mar 2010 14:37:53 -0500 Received: by wwc33 with SMTP id 33so114647wwc.29 for ; Tue, 23 Mar 2010 12:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=wfqYnJ4aZa8ttIkfkqcjrq8/QjmXcu/knJTO7sPpXqc=; b=LE7eD8mNIvF/HWrW5DOFZnQmwiUXN+H4reIihlKsEafJjdG7OvwjSbLT+1LXwN+veT MpoC8oamCRiTIq0c2uhzFu6To+8G+AVfDYIdeo6gSpcjHgVe4UDeY5htUKKkPuaI5hzj pWpYJ8ECakkXPQPxhRh+7cb/orTJtEz9d/Qgc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GwNDj0bOcj6k7I2EuL8F4kWT4BT6PZl6ma33VADWGnsGmWheeuWvVX+9aCV0aGxAQM DyefcTUuIl2PJjuBI5wKRnGQL3byimjxYgIBBlEJEOnZyEnzX/H/rtESY7hMIXpDzUWI /7iHI3fmR5h3MWlnZqb/39Cgk0+G53RhFrH5Y= MIME-Version: 1.0 Received: by 10.216.167.131 with SMTP id i3mr2805068wel.94.1269373066078; Tue, 23 Mar 2010 12:37:46 -0700 (PDT) In-Reply-To: <4BA8F985.1090109@daylessday.org> References: <4BA8EF6F.8010503@daylessday.org> <4BA8F72E.5090701@sci.fi> <4BA8F985.1090109@daylessday.org> Date: Tue, 23 Mar 2010 20:37:45 +0100 Message-ID: To: Antony Dovgal Cc: jani.taskinen@iki.fi, php-dev Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] FPM RFC From: pierre.php@gmail.com (Pierre Joye) hi Tony, On Tue, Mar 23, 2010 at 6:25 PM, Antony Dovgal wrote: >> Does it really need to be separate SAPI? I mean, just replace the old sapi/cgi >> with it? Keep the name 'cgi' though. :) > > I don't see any need to touch sapi/cgi at all. > Keeping both CGI and FastCGI in one SAPI leads to a nasty code mess with lots of > "if (fcgi_is_fastcgi()) {" as you can now see in cgi_main.c. Not sure to follow, are you suggesting to consider FPM as the sapi/cgi's fastcgi replacement? As Jani is suggesting. > sapi/fpm and sapi/cgi now have quite different codebase as we've dropped some stuff > not pertinent to FastCGI (there might be some leftovers, I'll deal with them later). By the way, how portable is it? I don't think it has been tested on windows (some of the key features are not necessary with IIS/FCGI as they do it already but could be for other web servers). I would suggest to keep it as a separate sapi for now, or forever if it works. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org