Re: Proposal: allow for includes in php.ini
| From: | Tjerk Meesters | Date: | Mon, 28 Dec 2009 15:30:49 +0000 |
| Subject: | Re: Proposal: allow for includes in php.ini | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46555@lists.php.net to get a copy of this message | ||
On 28-Dec-2009, at 17:43, Richard Quadling <rquadling@googlemail.com> wrote:
2009/12/23 Tjerk Meesters <tjerk.meesters@gmail.com>:The additional use case would be to have all common configuration settings into one ini file that would get included by the different SAPI ini files.On 24-Dec-2009, at 2:47, Pierre Joye <pierre.php@gmail.com> wrote:For different SAPIs ... php-cli.ini, php-isapi.ini, php-cgi-fcgi.ini, etc. is what I use on Windows. Combined with registry settings for PHP (Prior to PHP5), PHP5 and PHP6, I can very easily dictate which INI file will be loaded for which version of PHP and for which SAPI. Beyond that, I can use [HOST=] for some host specific settings. All of this is with the standard windows pre-compiled binaries. I'm not sure what registry settings do, haven't seen that in Linux yet.On Wed, Dec 23, 2009 at 7:20 PM, Michael Shadle <mike503@gmail.com> wrote:The most tempting reason for me would be to have easier control of what gets loaded between SAPI's, eg load this ini for cli but not for cgi, etc. Right now this is only possible by compiling each Sapi with its own search path, which is more cumbersome.On Wed, Dec 23, 2009 at 10:13 AM, Mikko Koppanen <mkoppanen@php.net> wrote:Please tell me one benefit except "we support include"? I don't see any. The extra files are still there, they will be loaded too, etc.Hello, I think you can use PHP_INI_SCAN_DIR environment variable which should work runtime as well.still seems a bit archaic. i don''t see any reason why include support can't be added in php.ini. it will probably wind up becoming more popular and widely used than the configure option too, or the environment option...Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
------- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling