Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60648 invoked by uid 1010); 12 Jul 2007 09:38:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60631 invoked from network); 12 Jul 2007 09:38:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2007 09:38:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=tijnema@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tijnema@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.243 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tijnema@gmail.com X-Host-Fingerprint: 209.85.132.243 an-out-0708.google.com Received: from [209.85.132.243] ([209.85.132.243:18527] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/B6-09861-6A6F5964 for ; Thu, 12 Jul 2007 05:38:47 -0400 Received: by an-out-0708.google.com with SMTP id c18so17511anc for ; Thu, 12 Jul 2007 02:38:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LUkzO5o3Kpv2SgmxiI8SjQvK0KZ3n2gZAMEaLQwrngGdCMpAlofNiHrr/wisuaY3KGmq+vKGNCg/uBiJaj4MekChcxtKJzKxHuLCU58Pf00ncng2Wg03Nu9cssblBiR3ICmJRiXb6fd17NlT68RL8sWCmJ7qXZ1IVj7+UCZMuGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ei3GCMQXTHw3FCIMOJVoiAL990EdoBTT++pF/S6vvuvUjuusmsqJwT9C929zQd2M10jMFbYGuPzTkZs0aYrcinO8MQtTuwGhonjjsQh3bArkiU7jLfwWtyZhlJ52b4Ii75GRI57HvU+fETo5nbuI8ryiVYuTncVbphAuYFivSoM= Received: by 10.100.173.19 with SMTP id v19mr196591ane.1184233124222; Thu, 12 Jul 2007 02:38:44 -0700 (PDT) Received: by 10.100.33.17 with HTTP; Thu, 12 Jul 2007 02:38:44 -0700 (PDT) Message-ID: Date: Thu, 12 Jul 2007 11:38:44 +0200 To: ceo@l-i-e.com Cc: jani.taskinen@iki.fi, "PHP Developers Mailing List" In-Reply-To: <2067.24.1.37.132.1184199932.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <469562DD.2030601@sci.fi> <2067.24.1.37.132.1184199932.squirrel@www.l-i-e.com> Subject: Re: [PHP-DEV] Apache handler with Multiple PHP versions From: tijnema@gmail.com (Tijnema) Hello Richard, On 7/12/07, Richard Lynch wrote: > On Wed, July 11, 2007 6:13 pm, Tijnema wrote: > > On 7/12/07, Jani Taskinen wrote: > >> A lot easier (and works already) is to install PHP as CGI/FastCGI > >> (one version or all of them, one can be module of course) and define > >> the > >> required PHP version by the file suffix.. > >> > >> --Jani > > > > Hello Jani: > > > > I know this is possible, and I believe it is possible in Apache too > > with some kind of hack? > > But this still doesn't solve a lot of problems, but will generate a > > lot more with portable code. Take a bulletin board for example, there > > are a lot of files inside a board, and when you want to install that > > on your host that has PHP5 for files with .php5, you need to rename a > > hell lot of files to .php5, AND change code inside the .php5 files to > > point to the renamed files. > > No, you add a config in httpd.conf or add to .htaccess a > line like > > ForceType whatever/gets/you/to/php-5 > 1) Did you ever see a shared host that has multiple versions configured like this? 2) This will end up to be confusing for the end user, as they will need to create the .htaccess file (as most users don't have write rights for httpd.conf) > > Other problems: > > Getting 2 PHP modules to co-exist without tromping on each others' > symbols is, I think, the show-stopper... Both modules are different files, and only one will be dynamically loaded by dlopen(), that works fine right? or do I forget something? > > It was possible to have PHP3 and PHP4 both as modules, I think, but > that was an anomoly? That was nice :) > > You also would have to re-think what happens when a version is > requested that isn't installed at all... > > You currently have it just run in the default version, I think, but is > that really useful? If the code really NEEDS PHP 5, and the server > doesn't have 5, only 4, running the code that needs 5 is probably not > the right action... I did, I think it should generate an error message, E_RECOVERABLE_ERROR maybe? And then the default PHP version should just give the code a try, just like it does when it is installed on a host that has the wrong PHP version installed. Regards, Tijnema