Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24216 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28891 invoked by uid 1010); 26 Jun 2006 08:50:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28876 invoked from network); 26 Jun 2006 08:50:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2006 08:50:55 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 66.249.92.171 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.171:14193] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 5B/D4-44237-CEF9F944 for ; Mon, 26 Jun 2006 04:50:53 -0400 Received: by ug-out-1314.google.com with SMTP id m2so2167806ugc for ; Mon, 26 Jun 2006 01:50:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=S46oFpqr2UoeCGjaemDTTYAzmHWJDo9WJhhV93bfedX4lWIMifBkgOlVZiP0LWcTc+L2eEFXk6A0+GEPvET4mYwml9EIjwz8Fleyb2B2VdBy6hmyExwxmn8NoqJ4G2gmSSsO0OFvShHhQw7Ek9WnG2BULdTfn+ZMKyf6mX0dK1g= Received: by 10.78.166.7 with SMTP id o7mr1938746hue; Mon, 26 Jun 2006 01:50:49 -0700 (PDT) Received: by 10.78.47.11 with HTTP; Mon, 26 Jun 2006 01:50:49 -0700 (PDT) Message-ID: <10845a340606260150x29e57048x4eb8db50db0e2bd7@mail.gmail.com> Date: Mon, 26 Jun 2006 09:50:49 +0100 Reply-To: RQuadling@GoogleMail.com To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_41984_26403412.1151311849668" Subject: Supporting version specific INI files as well as SAPI specific INI files. From: rquadling@googlemail.com ("Richard Quadling") ------=_Part_41984_26403412.1151311849668 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_41984_26403412.1151311849668--