Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36734 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33790 invoked from network); 31 Mar 2008 21:59:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2008 21:59:59 -0000 Authentication-Results: pb1.pair.com header.from=Sriram.Natarajan@Sun.COM; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=Sriram.Natarajan@Sun.COM; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain Sun.COM from 192.18.98.43 cause and error) X-PHP-List-Original-Sender: Sriram.Natarajan@Sun.COM X-Host-Fingerprint: 192.18.98.43 brmea-mail-2.Sun.COM Solaris 9 Received: from [192.18.98.43] ([192.18.98.43:50846] helo=brmea-mail-2.sun.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/43-17962-FDE51F74 for ; Mon, 31 Mar 2008 16:59:59 -0500 Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m2VLxudP020702 for ; Mon, 31 Mar 2008 21:59:56 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JYM00M013RH4100@mail-amer.sun.com> (original mail from Sriram.Natarajan@Sun.COM) for internals@lists.php.net; Mon, 31 Mar 2008 15:59:56 -0600 (MDT) Received: from [192.18.120.213] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JYM00ASJ7RQ3UF0@mail-amer.sun.com>; Mon, 31 Mar 2008 15:59:51 -0600 (MDT) Date: Mon, 31 Mar 2008 14:58:32 -0700 In-reply-to: <1206998787.2941.12.camel@goldfinger> Sender: Sriram.Natarajan@Sun.COM To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: internals@lists.php.net Message-ID: <47F15E88.4000402@Sun.COM> MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_LziCbYCUFpZcabFivdrClg)" References: <47F14FE9.4090300@Sun.COM> <1206998787.2941.12.camel@goldfinger> User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) Subject: Re: [PHP-DEV] Re: Is it possible to add support for multiple "extensions directory" ? From: Sriram.Natarajan@Sun.COM (Sriram Natarajan) --Boundary_(ID_LziCbYCUFpZcabFivdrClg) Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE Johannes Schl=FCter wrote: > Hi Sririam, > > On Mon, 2008-03-31 at 13:56 -0700, Sriram Natarajan wrote: > =20 >> In this regard to fit more with Solaris file layout traditions, = we=20 >> would like to keep the core PHP modules under /usr/php5/modules an= d the=20 >> user specific downloaded PECL/PEAR modules under /var/php5/modules= . =20 >> However, if I am not mistaken, PHP core doesn't support loading P= HP=20 >> modules from more than one location. So, I was wondering if this= =20 >> feature can be considered within PHP core ? >> =20 > =20 > =20 >> For example, within PHP.ini , a user can more provide more than 1= =20 >> location to look for PHP extensions >> extension_dir=3D/usr/php5/modules;/var/php5/modules >> =20 > > As of PHP 5.3 you can use the full path with the extension=3D direc= tive in > php.ini. Additionally you can use identifiers as variables therefor= e the > following would be possible: > > extension_dir =3D /var/php5/modules > solaris_extension_dir =3D /usr/php5/modules > > extension=3D${solaris_extension_dir}/foo.so > extension=3Dbar.so > > Would that be enough for you? :-) > > =20 Thanks for your response. Unfortunately, Open Solaris has PHP 5.2.5 a= nd=20 we will integrate PHP 5.3 once it is officially released. I guess, I = can=20 look into the option of back porting this patch for PHP 5.2 series un= til=20 we are ready to move to PHP 5.3 within Open Solaris. - Sriram --Boundary_(ID_LziCbYCUFpZcabFivdrClg)--