Sriram Natarajan wrote:
>
> I agree that we should create a symbolic link so that /usr/bin/php 
> points to /usr/php5/<latest version>/bin/php.  

I'm curious if php is commonly invoked manually from the shell command
line? (Since that's the main reason to have something in the default PATH.)

When invoked programmatically you might not want to call /usr/bin/php
anyway because you can't predict which version it is so the behavior
can change in a Volatile way. Whereas if you call /usr/php5/5.2.4/bin/php
you know its behavior will remain constant.

That said one benefit for /usr/bin/php which is when someone just
types 'php' into the shell as a discovery mechanism to see if php is
installed.  OTOH, that's not the proper way to query what packages are
installed. One should check the installed package database instead.
OYAH, if it makes developers discover all this cool stuff is indeed
here in OpenSolaris, that's a win..

Just some thoughts.. I'm ok with having it either way.


-- 
Jyri J. Virkki - jyri.virkki at sun.com - Sun Microsystems

Reply via email to