cvs: pear-core /PEAR Start.php

From: Date: Wed, 20 Jul 2005 22:31:18 +0000
Subject: cvs: pear-core /PEAR Start.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-33176@lists.php.net to get a copy of this message
cellog Wed Jul 20 18:31:18 2005 EDT Modified files: /pear-core/PEAR Start.php Log: on unix, use ~user/pear as the default install location for a non-root installation http://cvs.php.net/diff.php/pear-core/PEAR/Start.php?r1=1.1&r2=1.2&ty=u Index: pear-core/PEAR/Start.php diff -u pear-core/PEAR/Start.php:1.1 pear-core/PEAR/Start.php:1.2 --- pear-core/PEAR/Start.php:1.1 Wed Jul 20 17:59:57 2005 +++ pear-core/PEAR/Start.php Wed Jul 20 18:31:16 2005 @@ -122,6 +122,9 @@ } } else { $this->prefix = dirname(PHP_BINDIR); + if (get_current_user() != 'root') { + $this->prefix = $this->safeGetenv('HOME') . '/pear'; + } $this->bin_dir = '$prefix/bin'; $this->php_dir = '$prefix/share/pear'; $this->doc_dir = '$php_dir/docs';

« previous php.pear.cvs (#33176) next »