Re: Re: Question wrt dual-PEAR

From: Date: Tue, 01 Feb 2005 14:30:10 +0000
Subject: Re: Re: Question wrt dual-PEAR
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-35859@lists.php.net to get a copy of this message
MadCoder wrote:
The debian package manager could easily wrap the pear command, as Alan Knowles suggests, and pass in a hard-coded user config file if it isn't specified on the command-line. In other words, the pear script would be called with pear -c /path/to/debian_usr_local_share/pear.conf $@
this is nice too. but won't it forget about /usr/share/php ?
No. It may take a while, but please examine the source for PEAR/Config.php, specifically PEAR_Config->get(). Configurations are stored in "layers", meaning that if no layer is specified, the user config will be checked for a value, and only if none is present will the system layer be checked. So, if your user config has: php_dir = /home/boop/pear and the system has data_dir = /usr/pear/data an installation will attempt to put all role="php" files into /home/boop/pear and all role="data" files into /usr/pear/data. Greg

« previous php.pear.dev (#35859) next »