Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93555 invoked by uid 1010); 27 Jun 2006 03:51:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93540 invoked from network); 27 Jun 2006 03:51:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2006 03:51:13 -0000 X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:3462] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 5C/3D-44237-8BAA0A44 for ; Mon, 26 Jun 2006 23:49:13 -0400 Received: (qmail 32541 invoked from network); 27 Jun 2006 03:48:27 -0000 Received: from localhost (HELO ANDILENOVO) (127.0.0.1) by localhost with SMTP; 27 Jun 2006 03:48:27 -0000 To: , Date: Mon, 26 Jun 2006 20:49:06 -0700 Message-ID: <030b01c6999c$a602b120$6700a8c0@zend.2k> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcaY/bqEuK0PBXk3TuGH2SDGX3sx8wAnsi5g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <10845a340606260150x29e57048x4eb8db50db0e2bd7@mail.gmail.com> Subject: RE: [PHP-DEV] Supporting version specific INI files as well as SAPI specific INI files. From: andi@zend.com ("Andi Gutmans") References: <10845a340606260150x29e57048x4eb8db50db0e2bd7@mail.gmail.com> I think this is a good idea. It seems like it'll work long term and it does solve a problem we have today (and already went half way to solving it). > -----Original Message----- > From: Richard Quadling [mailto:rquadling@googlemail.com] > Sent: Monday, June 26, 2006 1:51 AM > To: internals@lists.php.net > Subject: [PHP-DEV] Supporting version specific INI files as > well as SAPI specific INI files. > > Hi. > > First up, I use windows. > > Secondly, I would like to be able to use PHP5 and PHP6 > together at the same time as ISAPI rather than CGI. > > I can currently use PHP4 (CGI) and PHP5 (ISAPI) and I can use > different INI files for each (PHP4 uses php.ini, PHP5 CLI > uses php-cli.ini, PHP5 ISAPI uses php-isapi.ini) and all is well. > > In adding PHP6 to the mix, I have no way to create a separate > INI file for PHP6. > > My idea for extending the filename that PHP looks for to > include the major PHP version (from PHP 6 onwards) has not > had any response. > > Ideally. > > php.ini (for PHP4 as that is all there seems to be). > php-sapi.ini (for PHP5 as this is currently working). > php6-sapi.ini (for PHP6 and onwards as this is not yet > released and would actually benefit a LOT of windows users - > well, me only, probably). > > Add to that the fallback through the non versioned -sapi and > then to plain php.ini and everything is covered AND you have > the future under control too. > > PHP6-isapi.ini, PHP7-ispai.ini, etc. > > I'm on Window and I don't have MS Visual Studio or VC++, so I > am not able to compile the PHP source. I have cygwin (I have > mods to the documention). I'm not sure if I compile via > cygwin if my PHP will run in Windows. > > I've included my proposed patch. > > I copied the code dealing with php-%sapi-module-name% and > extended it to deal with PHP_MAJOR_VERSION. > > The only thing I'm not sure of is if the determining of the > number of bytes/characters to add to the emalloc needs to be > different for other platforms. If the PHP_MAJOR_VERSION is > less than 10 then I need to add 1 byte/character otherwise > add 2 (to allow up to PHP_MAJOR_VERSION of 99). > > If this goes into the PHP6 snapshot, then you can now run > PHP4, PHP5 and PHP6 on the same web server each with its own > extensions and setup. Basically, neither of the versions > knows about the other. > > Hope this is good. > > Regards, > > Richard Quadling. > > -- > ----- > Richard Quadling > Zend Certified Engineer : > http://zend.com/zce.php?c=ZEND002498&r=213474731 > >