[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PHP] Standard placement of PHP libraries?



On Tuesday 02 of August 2005 16:12, Jose Carlos do Nascimento wrote:
> Piotr Roszatycki escreveu:
> >On Monday 01 of August 2005 21:25, Jose Carlos do Nascimento wrote:
> >>Piotr Roszatycki escreveu:
> >I think each PHP version should bring own bundled PEAR package placed
> >in /usr/share/php$VERSION or /usr/share/php/$VERSION. The /usr/share/php/
> >without version in path should be reserver for separate packages. See
> >perl/python/ruby/pike/whatever policy.
>
> Yes, this solve our problem with PEAR,
> but  if I install one pear class  like php-cache  or something else ,
> and this package is compatible  with pear-5 and pear-4 ,
>
> there was someone working in php-pear policy ?

So it is my proposition:

INCLUDE_PATH=.:/etc/php:/usr/local/share/php/5.0:/usr/share/php5:/usr/share/php/5.0:/usr/share/php:/usr/local/share/php
 
EXTENSION_DIR=/usr/local/lib/php/5.0/20041030:/usr/lib/php5/20041030:/usr/lib/php/5.0/20041030:/usr/local/lib/php

Budled libraries would install into /usr/share/php/5.0, PHP5-only libraries 
would install into /usr/share/php5, PHP-any libraries would install 
into /usr/share/php.

The same for binary extensions: bundled extensions into /usr/lib/php/5.0, 
external modules into /usr/lib/php5. The locally installed packages by `pear 
install' command could go into /usr/local/lib/php.

Of course the PHP packages have to set default "include_path" and 
"extension_dir". In addition, it have to be applied additional patch for 
multipath "extension_dir" setting.

-- 
 .''`.    Piotr Roszatycki, Netia SA
: :' :    mailto:Piotr_Roszatycki@netia.net.pl
`. `'     mailto:dexter@debian.org
  `-



Reply to: