Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23560 invoked from network); 31 Mar 2008 21:26:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2008 21:26:32 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:47730] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/31-17962-60751F74 for ; Mon, 31 Mar 2008 16:26:32 -0500 Received: (qmail 16400 invoked by uid 507); 31 Mar 2008 21:26:25 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.0.128) by mail4.netbeat.de with ESMTPA; 31 Mar 2008 21:26:25 -0000 To: Sriram Natarajan Cc: internals@lists.php.net In-Reply-To: <47F14FE9.4090300@Sun.COM> References: <47F14FE9.4090300@Sun.COM> Content-Type: text/plain Date: Mon, 31 Mar 2008 23:26:27 +0200 Message-ID: <1206998787.2941.12.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-3.fc8) Content-Transfer-Encoding: 7bit Subject: Re: Is it possible to add support for multiple "extensions directory" ? From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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