Hi.

First up, I use windows. I do NOT use Apache. I also do not use IIS. I
use Sambar Server as this fits my needs very well and is extremely
easy to work with and I can get a client's intranet running in a few
minutes. I'm not saying it is BETTER, just fits my requirements.

Secondly, I would like to be able to use PHP4, PHP5 and PHP6 together
at the same time. Preferably ISAPI rather than CGI (mainly persistent
DB connections).

I can currently use PHP4 (CGI) and PHP5 (ISAPI) and I can use
different INI files for each (PHP4 uses php-cgi.ini, PHP5 CLI uses
php-cli.ini, PHP5 ISAPI uses php-isapi.ini) and all is well. The PHP
userland files have .php4 for PHP4 and .php5 for PHP5. (Though .php
will also be treated as PHP5).

In adding PHP6 to the mix, I have no way to create a separate INI file for PHP6.

I am not able to recompile PHP (though I am looking at the MS VC++
Express Edition as this is free - any comments?).

There is no mechanism of providing a specific INI file for a
particular ISAPI or CGI extension within Sambar, so the extension (in
this case PHP4 cgi and PHP5 isapi) will follow whatever is defined
within itself to find the appropriate config file.

Currently PHP can use many techniques to define the external config
file name. PHP can also use many techniques to locate the file.

Currently, then PHP looks for an external filename it will look for a
SAPI specific version (php-cli.ini, php-isapi.ini, php-cgi.ini).

If this is not found, then PHP will look for plain old, php.ini

My proposal (and the attached patch) extends this to allow PHP to look
for a version specific SAPI ini file.

phpx-sapi.ini, where x is the version number.

I've allowed upto V99.

The patch will fallback to looking for the non-versioned sapi specific
ini file and then onto plain old php.ini, just as before.

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 in determining the number of
bytes/characters to add if emalloc's needs are 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).

I've just downloaded via CVS the latest php-src and the patch is
against /* $Id: php_ini.c,v 1.143 2006/07/04 06:38:32 dmitry Exp $ */

Regards,

Richard Quadling.

--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to