pear install on shared host fails due to hard-coded temp-dir paths in .phar files

From: Date: Sun, 31 May 2009 01:58:22 +0000
Subject: pear install on shared host fails due to hard-coded temp-dir paths in .phar files
Groups: php.pear.core 
Request: Send a blank email to pear-core+get-8450@lists.php.net to get a copy of this message
hi, i'm installing php 5.2.9/release, from tarball/src, onto a _shared_ host; i have _no_ root access, but full admin access to any/all below my $HOME. installing pear fails, apparently, because temp dir paths are hard_coded below system root -- not accessible to the shared user (me). details: @ install of php --without-pear goes fine. if i, instead, add, --with-pear=$HOME/lib/php @ make install it fails to install, complaining about lack of perms for '/tmp/pear/install' checking, in ls pear/install-pear-nozlib.phar @ line# 86584 $this->temp_dir = '/tmp/pear/install'; $this->download_dir = '/tmp/pear/install'; this dir is _hard_ coded to /tmp/... if i simply, cd php-src/pear wget http://pear.php.net/go-pear.phar php go-pear.phar i'm offered, 1. Installation base ($prefix) : /home/pgn/pear 2. Temporary directory for processing : /tmp/pear/install 3. Temporary directory for downloads : /tmp/pear/install 4. Binaries directory : /home/pgn/pear/bin 5. PHP code directory ($php_dir) : /home/pgn/pear/share/pear 6. Documentation directory : /home/pgn/pear/docs 7. Data directory : /home/pgn/pear/data 8. User-modifiable configuration files directory : /home/pgn/pear/cfg 9. Public Web Files directory : /home/pgn/pear/www 10. Tests directory : /home/pgn/pear/tests 11. Name of configuration file : /home/pgn/.pearrc note, again, the hard_coded /tmp changing [1] /home/pgn/pear --> /home/pgn [2] /tmp/pear/install --> /home/pgn/tmp/pear/install [3] /tmp/pear/install --> /home/pgn/tmp/pear/install then continuing, The 'pear' command is now at your service at /home/pgn/bin/pear and, as expected, ls -al which pear -rwxr-xr-x 1 pgn pgn 833 2009-05-30 18:03 /home/pgn/bin/pear pear version Version: 1.8.0 PHP Version: 5.2.9 Zend Engine Version: 2.2.0 Running on: Linux trubadour 2.6.28.4-xeon-serf-areca-grsec #1 SMP Fri Jan 13 22:01:42 PST 2009 x86_64 is there a configuration/workaround for this? or, in need of a fix? thanks.

« previous php.pear.core (#8450) next »