Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58019 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30204 invoked from network); 24 Feb 2012 20:47:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 20:47:34 -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 Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:63853] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/48-17132-367F74F4 for ; Fri, 24 Feb 2012 15:47:33 -0500 Received: by yenm5 with SMTP id m5so1524035yen.29 for ; Fri, 24 Feb 2012 12:47:29 -0800 (PST) Received-SPF: pass (google.com: domain of pierre.php@gmail.com designates 10.236.72.230 as permitted sender) client-ip=10.236.72.230; Authentication-Results: mr.google.com; spf=pass (google.com: domain of pierre.php@gmail.com designates 10.236.72.230 as permitted sender) smtp.mail=pierre.php@gmail.com; dkim=pass header.i=pierre.php@gmail.com Received: from mr.google.com ([10.236.72.230]) by 10.236.72.230 with SMTP id t66mr7841396yhd.45.1330116449667 (num_hops = 1); Fri, 24 Feb 2012 12:47:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=r5OZnQwYLUkY75yiGUE/OOBaJhLcSoWJJ+UYm6wD//g=; b=oOTwmKzFFL0YQk9N3y8CROqDwgdz25jI17yjIwAELfcMhn22j7efIXAOG0b+NYVIBK rmw5LwC6QkZvXFiW20zJiBIL5alIIqVlrjZO6+CWAA5ppgK5NVE7AJWEr61gMX6LcTrQ BAdcAck/uq8NtT0XohQd4w60abplIsGlbEzN4= MIME-Version: 1.0 Received: by 10.236.72.230 with SMTP id t66mr5947134yhd.45.1330116449574; Fri, 24 Feb 2012 12:47:29 -0800 (PST) Received: by 10.146.221.14 with HTTP; Fri, 24 Feb 2012 12:47:29 -0800 (PST) In-Reply-To: References: Date: Fri, 24 Feb 2012 21:47:29 +0100 Message-ID: To: Tom Boutell Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] pecl, zts, non-zts, fastcgi and Apache From: pierre.php@gmail.com (Pierre Joye) hi, On Fri, Feb 24, 2012 at 9:30 PM, Tom Boutell wrote: > Good point. Last I tried that it worked poorly - I couldn't find a > bytecode cache that worked with it, performance was poor - and I > switched to the Microsoft accelerator and IIS. But things may have > changed. APC with rwlock is faster than before under Apache: http://www.php.net/~pierre/vcqa/apcigninary_perf.png http://www.php.net/~pierre/vcqa/apc-rwlock-win.pdf And that was possible only by doing changes in APC only. Microsoft has no policy or whatever else when it comes to PHP but they support FastCGI because it was easier for the IIS team to develop FastCGI support for IIS than trying to get support via ISAPI for all other languages. But it is imo a bad design solution (long term), while working very so far. PHP on windows supports both NTS and TS (Apache) and will certainly support again TS under IIS again in PHP next. > Doesn't really explain it on Linux... > > But what I really want to know is just how to get predictable behavior > in my script - after installing a new PHP and pecl I should be able to > do pecl installs and have them show up in the right extensions folder > for the PHP I just built, but no such luck. that's why php-config exists, use it to get which version of PHP is installed or has to be used (nts, ts, php version, api version, etc.). That's all parameter you need to know. php-config should give you the path as well afair. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org