I've some PHP scripts which are starting with #!/usr/bin/env php
. The default interpreter is PHP 4.4, but the scripts need PHP 5.3, so I created an alias in ~/.bashrc
:
alias php="/usr/local/bin/php5-53LATEST-CLI"
Thus calling php -v
shows me 5.3 but #!/usr/bin/env php
uses still 4.4. I wont change the scripts. So how can I get PHP 5.3 with #!/usr/bin/env php
?