Re: Supporting version specific INI files as well as SAPI specific INI files.
| From: | Marcus Boerger | Date: | Mon, 07 Aug 2006 08:39:13 +0000 |
| Subject: | Re: Supporting version specific INI files as well as SAPI specific INI files. | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-25218@lists.php.net to get a copy of this message | ||
Hello Dmitry,
Monday, August 7, 2006, 10:25:48 AM, you wrote:
>> -----Original Message-----
>> From: Richard Quadling [mailto:rquadling@googlemail.com]
>> Sent: Monday, August 07, 2006 11:52 AM
>> To: Dmitry Stogov; PHP Developers Mailing List
>> Subject: Re: [PHP-DEV] Supporting version specific INI files
>> as well as SAPI specific INI files.
>> On 07/08/06, Dmitry Stogov <dmitry@zend.com> wrote:
>> > I see several problems with version specific ini files
>> >
>> > 1) PHP might need to check tens of files before opening
>> /etc/php.ini.
>>
>> Currently there are 2 generic files being scanned for
>> (php.ini and php-sapi.ini). I'm extending this to be
>> phpx-sapi.ini, phpx.y-sapi.ini, phpx.y.z-sapi.ini and
>> phpver-sapi.ini. This is only an extra 4 files max.
> These files are searched in several directories.
> PHPRC:regestry:binary dir:current working dir:default location(windows and
> windows /system32)
> 6 direstories in worst case.
> So with your solution we will look for 6 files in 6 directories.
> 36 files in worst case.
> This is not a big problem for ISAPI or apache module, but might be a problem
> for CGI.
>
But wouldn't you, if timing is an issue, do "phpcgi -n -c my.ini" anyway?
Best regards,
Marcus