[MacPorts] #37683: [php-pear] Would PHP BIN be FORCED to 'php'?
MacPorts
noreply at macports.org
Thu Jan 17 18:57:55 PST 2013
#37683: [php-pear] Would PHP BIN be FORCED to 'php'?
--------------------------+--------------------------------
Reporter: zsnakevil@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Low | Milestone:
Component: ports | Version: 2.1.2
Keywords: php-pear bin | Port:
--------------------------+--------------------------------
I've installed and activated the port 'php54'.
{{{
# port select php
Available versions for php:
none
php54 (active)
}}}
After installed 'php-pear', I found the PHP binary which used by PEAR is
pointed to '/usr/bin/php'.
{{{
# pear version
PEAR Version: 1.9.4
PHP Version: 5.3.15
Zend Engine Version: 2.3.0
# cat /opt/local/bin/pear
1 #!/bin/sh
2 # first find which PHP binary to use
3 if test "x$PHP_PEAR_PHP_BIN" != "x"; then
4 PHP="$PHP_PEAR_PHP_BIN"
5 else
6 if test "/usr/bin/php" = '@'php_bin'@'; then
7 PHP=php
8 else
9 PHP="/usr/bin/php"
10 fi
11 fi
}}}
Installed port 'php54' would not be used until I run PEAR as
`PHP_PEAR_PHP_BIN=php pear`.
{{{
# PHP_PEAR_PHP_BIN=php pear version
PEAR Version: 1.9.4
PHP Version: 5.4.10
Zend Engine Version: 2.4.0
}}}
--
Ticket URL: <https://trac.macports.org/ticket/37683>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list