Re: Proposal: allow for includes in php.ini

From: Date: Wed, 23 Dec 2009 19:08:31 +0000
Subject: Re: Proposal: allow for includes in php.ini
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-46514@lists.php.net to get a copy of this message
On 24-Dec-2009, at 2:47, Pierre Joye <pierre.php@gmail.com> wrote:
On Wed, Dec 23, 2009 at 7:20 PM, Michael Shadle <mike503@gmail.com> wrote:
On Wed, Dec 23, 2009 at 10:13 AM, Mikko Koppanen <mkoppanen@php.net> wrote:
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...
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. 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.
Cheers, --Pierre http://blog.thepimp.net | http://www.libgd.org


« previous php.internals (#46514) next »