Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61024 invoked from network); 27 Feb 2012 21:13:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 21:13:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=wrowe@rowe-clan.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=wrowe@rowe-clan.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rowe-clan.net from 173.201.192.233 cause and error) X-PHP-List-Original-Sender: wrowe@rowe-clan.net X-Host-Fingerprint: 173.201.192.233 p3plsmtpa07-04.prod.phx3.secureserver.net Linux 2.6 Received: from [173.201.192.233] ([173.201.192.233:46453] helo=p3plsmtpa07-04.prod.phx3.secureserver.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7A/B6-29394-6E1FB4F4 for ; Mon, 27 Feb 2012 16:13:11 -0500 Received: (qmail 7139 invoked from network); 27 Feb 2012 21:13:07 -0000 Received: from unknown (76.252.112.72) by p3plsmtpa07-04.prod.phx3.secureserver.net (173.201.192.233) with ESMTP; 27 Feb 2012 21:13:07 -0000 Message-ID: <4F4BF1C6.8010104@rowe-clan.net> Date: Mon, 27 Feb 2012 15:12:38 -0600 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache From: wrowe@rowe-clan.net ("William A. Rowe Jr.") On 2/27/2012 6:58 AM, jpauli wrote: > PHP through mod_php on Linux should compile without ZTS. > > configure script searches for apxs binary and tries to invoque "apxs -q > MPM" to figure out what MPM has been compiled in Apache for the TS flag to > be defined or not (thus, activating PHP ZTS, or not). Right... > Mainly on Linux, Apache should have been installed with prefork MPM ans > "apxs -q" should return that, then configure should not define > PHP_BUILD_THREAD_SAFE. No, 2.2 and 2.4 don't default to prefork, it's suboptimal, most linux distros have moved away from it... > Recently we had a bug with the new Apache 2.4 API where apxs doesn't answer > about the MPM configuration anymore, leading to a ZTS build by default. > This bug has now been fixed, was https://bugs.php.net/bug.php?id=61172. Wrong fix. Out of the box you don't know which mpm may be loaded, because the mpm is now loadable (although a full daemon stop/start is necessary). The only mod_php loadable under any circumstance is TS enabled. If you want php/linux single-child, fastcgi is the only rational approach. > I dont know anything about windows, sorry Always threaded.