Re: question about PEAR2 Pyrus

From: Date: Wed, 27 Feb 2008 04:05:53 +0000
Subject: Re: question about PEAR2 Pyrus
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28583@lists.php.net to get a copy of this message
Dmitri wrote: > Hello! > I looked at the Pyrus code in svn (breifly) and noticed this code: > > static protected $defaults = > array( > 'php_dir' => '@php_dir@/php', // pseudo-value in this > implementation > 'ext_dir' => '@php_dir@/ext_dir', > 'doc_dir' => '@php_dir@/docs', > 'bin_dir' => PHP_BINDIR, > 'data_dir' => '@php_dir@/data', // pseudo-value in this > implementation > . > . > . > . > > Can someone tell me what do it mean "pseudo-value in this implementation"? > > > Does it mean that PEAR2 will not really have the php_dir and data_dir > config settings? php_dir is implicitly the location of the configuration. Pyrus separates user configuration (things like default_channel, sig_key) from installation configuration (the values you quoted), and stores the locations of installation configuration in what used to be php_dir. In other words, php_dir can't change. You can, however, create a new repository in another location. In addition, Pyrus supports cascading registries just like PEAR supports cascading configuration files. It will make finding your Pyrus installation a whole lot easier than finding a PEAR installation when there is a configuration problem. data_dir is always php_dir/data in Pyrus. This allows statically coding the location of data or other packages, allowing much more flexible design. Greg

« previous php.pear.general (#28583) next »