Proposal: allow for includes in php.ini

From: Date: Wed, 23 Dec 2009 12:40:17 +0000
Subject: Proposal: allow for includes in php.ini
Groups: php.internals 
Request: Send a blank email to internals+get-46502@lists.php.net to get a copy of this message
NOTE: I just remembered there -is- a config-file-scan-dir option at compile time. However, what about doing away with this and making it inline in php.ini, the syntax can match mysql, as it uses ini files as well. This mainly will help with programatically creating PHP-FPM pool config files, but could open up to other distro-specific or helpful things. This could allow for say, Ubuntu's php5-apc package to not modify php.ini, but include an apc.ini in /etc/php5/conf.d/ for example (which it might actually do already. I can't install it without messing up my box as I compile my own PHP) Since the scanning code is already there, seems like pretty trivial changes to the config file parser to add in an include declaration that behaves the same way (and supports wildcards!) - this would also allow for multiple locations to be scanned, not just the one defined at compile time. (I'm thinking of repos who have precompiled the PHP binary, so there is no flexibility there for users of repository-created packages) I'd submit a patch but I don't know C. Thoughts?

« previous php.internals (#46502) next »