php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62236 Hardcoded path /usr/local/bin/php
Submitted: 2012-06-05 20:04 UTC Modified: 2012-06-18 09:10 UTC
From: max dot antonoff at gmail dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.4.4 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: max dot antonoff at gmail dot com
New email:
PHP Version: OS:

 

 [2012-06-05 20:04 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-11 12:59 UTC] Sjon at hortensius dot net
/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
 [2012-06-15 11:37 UTC] maarten@php.net
-Status: Open +Status: Feedback
 [2012-06-15 11:37 UTC] maarten@php.net
Max, could you please try/test the above hint?
 [2012-06-15 14:58 UTC] max dot antonoff at gmail dot com
Seems fixed: 

which php; which pear; php -v; php -i |grep configure; pear list-all |grep 
XML_svg2image 

/home/max/local/bin/php
/home/max/local/bin/pear
PHP 5.4.4 (cli) (built: Jun 15 2012 18:47:49) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Configure Command =>  './configure'  '--prefix=/home/max/local' '--disable-cgi' 
'--with-pear=/home/max/local/PEAR'
pear/XML_svg2image                             0.2.0            Converts a svg  
file to a png/jpeg image.
 [2012-06-15 14:58 UTC] max dot antonoff at gmail dot com
-Status: Feedback +Status: Open -PHP Version: 5.4.4RC2 +PHP Version: 5.4.4
 [2012-06-18 09:10 UTC] maarten@php.net
-Status: Open +Status: Not a bug
 [2012-06-18 09:10 UTC] maarten@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 14:01:32 2024 UTC