Re: Is it possible to add support for multiple "extensions directory" ?
| From: | Johannes Schlüter | Date: | Mon, 31 Mar 2008 21:26:27 +0000 |
| Subject: | Re: Is it possible to add support for multiple "extensions directory" ? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36731@lists.php.net to get a copy of this message | ||
Hi Sririam,
On Mon, 2008-03-31 at 13:56 -0700, Sriram Natarajan wrote:
> In this regard to fit more with Solaris file layout traditions, we
> would like to keep the core PHP modules under /usr/php5/modules and the
> user specific downloaded PECL/PEAR modules under /var/php5/modules.
> However, if I am not mistaken, PHP core doesn't support loading PHP
> modules from more than one location. So, I was wondering if this
> feature can be considered within PHP core ?
> For example, within PHP.ini , a user can more provide more than 1
> location to look for PHP extensions
> extension_dir=/usr/php5/modules;/var/php5/modules
As of PHP 5.3 you can use the full path with the extension= directive in
php.ini. Additionally you can use identifiers as variables therefore the
following would be possible:
extension_dir = /var/php5/modules
solaris_extension_dir = /usr/php5/modules
extension=${solaris_extension_dir}/foo.so
extension=bar.so
Would that be enough for you? :-)
johannes