[MacPorts] #37683: [php-pear] Would PHP BIN be FORCED to 'php'?

MacPorts noreply at macports.org
Fri Jan 18 06:58:36 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
Resolution:               |   Keywords:  php-pear bin
      Port:               |
--------------------------+--------------------------------

Comment (by zsnakevil@…):

 Thx for your reply!

 I tried to install PHPUnit by the **pear-PHPUnit** port, but failed with a
 forgotten warning message :-( So I have no idea about that what would be
 written into the binary **phpunit** through the **$PHP_PEAR_PHP_BIN**
 environment variable.

 The flow in my opinion is:

 1. **$PHP_PEAR_PHP_BIN** passes into **pear** command execution,

 2. or **pear** tries to detect the value itself,

 3. **pear** rewrites the first line of the installing binary to "#!"
 tailing with **$PHP_PEAR_PHP_BIN**.

 The key step as I thought is the second, "/usr/bin/php" was hard coded
 into the **pear** binary.

 So that was passed and hard coded into the ports binaries on porting?!

-- 
Ticket URL: <https://trac.macports.org/ticket/37683#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list