Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52329 invoked from network); 27 Feb 2012 12:58:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 12:58:53 -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 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:52624] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/34-40985-B0E7B4F4 for ; Mon, 27 Feb 2012 07:58:52 -0500 Received: by eaal11 with SMTP id l11so1910488eaa.29 for ; Mon, 27 Feb 2012 04:58:49 -0800 (PST) Received-SPF: pass (google.com: domain of julienpauli@gmail.com designates 10.14.99.2 as permitted sender) client-ip=10.14.99.2; Authentication-Results: mr.google.com; spf=pass (google.com: domain of julienpauli@gmail.com designates 10.14.99.2 as permitted sender) smtp.mail=julienpauli@gmail.com; dkim=pass header.i=julienpauli@gmail.com Received: from mr.google.com ([10.14.99.2]) by 10.14.99.2 with SMTP id w2mr8165713eef.69.1330347529447 (num_hops = 1); Mon, 27 Feb 2012 04:58:49 -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=v2mT0xnYy7Ac9LfSF/SFccx5O0yPxyv+vqC9ML449nc=; b=TjgsyPxZ5q0/hY2aO0w8LvXx/EJN66Sr19EZNmFSvCsFZPDWKirpvkisWVT0UuAoIf uThS5G5xj89uoJh8C1WyBczc9+Sc7mK+vEkuv+TCT3VJNrTavzPDBZfQmpRrRsge4KyI 7v7Im1NPMm35jbKEBe0odNxdTeRyL+SHG94UU= Received: by 10.14.99.2 with SMTP id w2mr6151029eef.69.1330347529269; Mon, 27 Feb 2012 04:58:49 -0800 (PST) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.213.29.2 with HTTP; Mon, 27 Feb 2012 04:58:09 -0800 (PST) In-Reply-To: <5a1d155ad465d1ec2e6461f5347d859f.squirrel@www.l-i-e.com> References: <5a1d155ad465d1ec2e6461f5347d859f.squirrel@www.l-i-e.com> Date: Mon, 27 Feb 2012 13:58:09 +0100 X-Google-Sender-Auth: RF8ai3lHXGCF_Ti0KXQouPoY35g Message-ID: To: Richard Lynch Cc: PHP Internals Content-Type: multipart/alternative; boundary=bcaec52be493e8f2e204b9f1aba8 Subject: Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache From: jpauli@php.net (jpauli) --bcaec52be493e8f2e204b9f1aba8 Content-Type: text/plain; charset=ISO-8859-1 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). 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. 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. I dont know anything about windows, sorry Julien.Pauli On Fri, Feb 24, 2012 at 10:04 PM, Richard Lynch wrote: > On Fri, February 24, 2012 1:52 pm, Tom Boutell wrote: > > 2. Why does php turn on thread-safety for mod_php at all on Linux, > > given that it apparently still doesn't work very well with various > > extensions in a genuinely multithreaded situation, slows things down, > > takes more memory, and leads to problems like this one? > > I can't recall who, but I have heard people who claim to run > multi-threaded on Linux, but with a heck of a lot of stress testing, > and a rigid control on minimal extensions added... > > So apparently *somebody* uses it. > > -- > brain cancer update: > http://richardlynch.blogspot.com/search/label/brain%20tumor > Donate: > > https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --bcaec52be493e8f2e204b9f1aba8--