Bug #62236 [Com]: Hardcoded path /usr/local/bin/php
Edit report at https://bugs.php.net/bug.php?id=62236&edit=1
ID: 62236
Comment by: Sjon at hortensius dot net
Reported by: max dot antonoff at gmail dot com
Summary: Hardcoded path /usr/local/bin/php
Status: Open
Type: Bug
Package: CGI/CLI related
Operating System: Linux
PHP Version: 5.4.4RC2
Block user comment: N
Private report: N
New Comment:
/usr/bin/pear is a simple script that determines which PHP binary to use. It
should be easy to debug this yourself, I think an incorrect $PHP_PEAR_PHP_BIN
might cause this for example
Previous Comments:
------------------------------------------------------------------------
[2012-06-05 20:04:05] max dot antonoff at gmail dot com
Description:
------------
max 23:58:24 php-src $ pear list-all
exec: 28: /usr/local/bin/php: not found
max 23:58:15 php-src $ php -v
PHP 5.4.4-RC2 (cli) (built: Jun 5 2012 23:48:00)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
max 23:58:29 php-src $ which php ; which pear; php -i |grep configure
/home/max/local/bin/php
/home/max/local/bin/pear
Configure Command => './configure' '--prefix=/home/max/local'
'--enable-proxy'
'--disable-cgi' '--with-mysqli' '--enable-fpm'
'--with-fpm-user=max' '--with-
fpm-group=max' '--with-config-file-path=/home/max/local/etc/php.ini' '--with-
config-file-scan-dir=/home/max/local/etc/php.d' '--enable-sigchild' '--disable-
ipv6' '--with-openssl' '--with-pcre-regex' '--with-zlib'
'--enable-bcmath' '--
with-bz2' '--with-curl' '--with-curlwrappers' '--enable-exif'
'--enable-ftp' '--
with-gd' '--enable-gd-native-ttf' '--with-mhash'
'--enable-mbstring' '--with-
mcrypt' '--with-mysql' '--with-mysql-sock=/var/run/mysqld/mysqld.sock'
'--
enable-pcntl' '--with-pdo-mysql' '--enable-shmop' '--enable-soap'
'--enable-
sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm'
'--enable-
wddx' '--with-xsl' '--enable-zip' '--enable-mysqlnd'
'--with-
pear=/home/max/local/PEAR' '--with-jpeg-dir' '--with-png-dir'
'--enable-intl'
Test script:
---------------
max 23:58:24 php-src $ pear list-all
Expected result:
----------------
list of packages
Actual result:
--------------
exec: 28: /usr/local/bin/php: not found
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62236&edit=1
Thread (5 messages)