Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30930 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76959 invoked by uid 1010); 14 Jul 2007 16:10:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76944 invoked from network); 14 Jul 2007 16:10:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2007 16:10:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:40643] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/30-05977-865F8964 for ; Sat, 14 Jul 2007 12:10:17 -0400 Received: from trainburn-lm-corp-yahoo-com.local (c-24-6-222-98.hsd1.ca.comcast.net [24.6.222.98]) (authenticated bits=0) by mail.lerdorf.com (8.14.1/8.14.1/Debian-7) with ESMTP id l6EGABpo025434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 14 Jul 2007 09:10:12 -0700 Message-ID: <4698F557.40006@lerdorf.com> Date: Sat, 14 Jul 2007 09:09:59 -0700 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: Tijnema CC: PHP Developers Mailing List References: <469877B6.8010307@zend.com> In-Reply-To: X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.3/3670/Fri Jul 13 22:08:13 2007 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] Apache handler with Multiple PHP versions From: rasmus@lerdorf.com (Rasmus Lerdorf) Tijnema wrote: > On 7/14/07, Stanislav Malyshev wrote: >> > The Apache2handler SAPI should be loaded first, and read the very >> > first line of the PHP script to determine if a version is specified >> > there. If not, the handler needs to load its default PHP version. If >> > it is specified, it should try to load that version, and if it >> > couldn't find or load that version, fall back to the default version >> > and issue a warning. >> >> This means the engines would have to init/shutdown on each request, >> which makes it as bad as CGI. > Is that really a big problem? If you care at all about performance, yes. > And isn't that what Apache currently does? No, of course not. The whole point of the Apache module version of PHP is to keep PHP in memory across requests and only call the MINIT and MSHUTDOWN hooks on server startup and shutdown. Not to sound too elitist here, and this is directed just at you personally, but if you are going to post to the internals list, you should have some notion of how PHP works internally. We don't mind people who don't work on the code posting here occasionally, but please keep in mind that it is our primary means of communicating amongst the people working on the code and lately it has gotten a bit hard to pick out the useful stuff from the chatter. -Rasmus