Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58546 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81871 invoked from network); 3 Mar 2012 12:46:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2012 12:46:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=rainer.jung@kippdata.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rainer.jung@kippdata.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain kippdata.de designates 195.227.30.149 as permitted sender) X-PHP-List-Original-Sender: rainer.jung@kippdata.de X-Host-Fingerprint: 195.227.30.149 capsella.kippdata.de Solaris 10 (beta) Received: from [195.227.30.149] ([195.227.30.149:38724] helo=mailserver.kippdata.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/81-01345-192125F4 for ; Sat, 03 Mar 2012 07:46:10 -0500 Received: from [10.0.110.6] ([192.168.2.104]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id q23Ck5vP018934 for ; Sat, 3 Mar 2012 13:46:05 +0100 (CET) Message-ID: <4F521289.7050004@kippdata.de> Date: Sat, 03 Mar 2012 13:46:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: <5a1d155ad465d1ec2e6461f5347d859f.squirrel@www.l-i-e.com> <4F4BF1C6.8010104@rowe-clan.net> <4F4C23CB.30402@oracle.com><4F4D05FE.607@rowe-clan.net> <4F4D2EBA.6000409@oracle.com><4F4D49ED.2020104@php.net> <4F4D5535.7000309@rowe-clan.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache From: rainer.jung@kippdata.de (Rainer Jung) On 29.02.2012 10:43, jpauli wrote: > On Wed, Feb 29, 2012 at 9:18 AM, Pierre Joye wrote: > >> hi Bill, >> >> On Tue, Feb 28, 2012 at 11:29 PM, William A. Rowe Jr. >> wrote: >>> On 2/28/2012 3:41 PM, Sebastian Bergmann wrote: >>>> On 02/28/2012 02:44 PM, Christopher Jones wrote: >>>>> Build PHP with ZTS enabled by default. Allow it to be explicitly >>>>> disabled during 'configure' >>>> >>>> Why punish everyone by default because of Apache? Does not make sense >> to >>>> me. >>> >>> What is so difficult to grok about >> >> Nothing, but it is easier to get a point when the rhetorical comments >> are removed :) >> >>> 1. setting up php-cgi to use fastcgi as the httpd default. >>> >>> 2. having parallel non-zts and zts installs of php (notably with only >>> non-zts cli and cgi sapi's) with two different lib paths. Multiply >>> by two again if you have parallel i686 and x86_64 installs. >>> >>> All of these are packager's questions anyways, as so few users do this >>> for themself, most hosters aren't rebuilding php either. >> >> Right, and that's a rather big change, package wised. While the >> lbraries (systems) are the same, at lest for 99.99% of them. There are >> a few which can be built in TS or not TS mode but I don't think it is >> worth it. >> >>> PHP would be a much nicer, friendly and more civilized development list >>> if it borrowed only one phrase from the Perl community; TMTOWTDI. >> >> Civilized sounds very wrong in this context, or in general these days. >> >> Cheers, >> -- >> Pierre >> >> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > Right, I suggest we leave #61172 as is, as it solves the problem. > PHP should be built with whatever MPM has been detected at configure time > (httpd -V) , and that's all. > > The work of switching MPM later should be left to package maintainers, and > scripts like Debian's "a2enmod" which can handle that themselves. You could in fact add a safety net by querying the threadedness of the MPM during mod_php startup. There's a standard MPM query API in Apache, which tells you whether a threaded MPM is in use. If the mod_php build would be without thread support and the module detects a threaded MPM during startup, it could prevent startup of Apache and output an error message. Regards, Rainer