Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58230 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54171 invoked from network); 28 Feb 2012 09:14:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 09:14:06 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:46192] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/D0-47028-DDA9C4F4 for ; Tue, 28 Feb 2012 04:14:06 -0500 Received: by eekb57 with SMTP id b57so1464774eek.29 for ; Tue, 28 Feb 2012 01:14:03 -0800 (PST) Received-SPF: pass (google.com: domain of julienpauli@gmail.com designates 10.14.125.3 as permitted sender) client-ip=10.14.125.3; Authentication-Results: mr.google.com; spf=pass (google.com: domain of julienpauli@gmail.com designates 10.14.125.3 as permitted sender) smtp.mail=julienpauli@gmail.com; dkim=pass header.i=julienpauli@gmail.com Received: from mr.google.com ([10.14.125.3]) by 10.14.125.3 with SMTP id y3mr10908205eeh.9.1330420443475 (num_hops = 1); Tue, 28 Feb 2012 01:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=5ybNzQ5VFNbpYr1J6nwObFTylP0OtqM7VVO2hfMBVr8=; b=SEI6JMWoaOiv12wdF2kFyBXB2KiIfDr+p3J/kX/9onasKcCXw08l0UemRD0UMuc0Ip OuXkd9xUuelVIvERKZpI9SubXQeU6djzlf4yBaGJO/ixJYCP7Ozmm/IGfqvRzqjCO1LZ wEjTqP/lcWtEwLyoQC5ZaAqR7tZd3j8+aGVsU= Received: by 10.14.125.3 with SMTP id y3mr8128809eeh.9.1330420443328; Tue, 28 Feb 2012 01:14:03 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.29.2 with HTTP; Tue, 28 Feb 2012 01:13:23 -0800 (PST) In-Reply-To: <4F4BF1C6.8010104@rowe-clan.net> References: <5a1d155ad465d1ec2e6461f5347d859f.squirrel@www.l-i-e.com> <4F4BF1C6.8010104@rowe-clan.net> Date: Tue, 28 Feb 2012 10:13:23 +0100 X-Google-Sender-Auth: 4MsOe5AbzWBNbmCADZLiJBoqz48 Message-ID: To: "William A. Rowe Jr." Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=e0cb4e6ffdffed2f8d04ba02a576 Subject: Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache From: jpauli@php.net (jpauli) --e0cb4e6ffdffed2f8d04ba02a576 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Feb 27, 2012 at 10:12 PM, William A. Rowe Jr. wrote: > 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... > > Sorry but 2.2 defaults to prefork. The new 2.4 platform has introduced loadable MPM, like any other module , thus we cant detect through apxs which MPM is used anymore. For this, we would need to play with httpd -M > > 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. > Yes, but ZTS has a performance/memory penalty due to globals locks. I would much prefer having a nonZTS PHP together with a non threaded MPM Julien.P > If you want php/linux single-child, fastcgi is the only rational approach. > > > I dont know anything about windows, sorry > > Always threaded. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --e0cb4e6ffdffed2f8d04ba02a576--