Skip to content

Instantly share code, notes, and snippets.

@funivan
Created November 11, 2013 08:22
Show Gist options
  • Select an option

  • Save funivan/7409683 to your computer and use it in GitHub Desktop.

Select an option

Save funivan/7409683 to your computer and use it in GitHub Desktop.
<?
/**
* https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Process/PhpExecutableFinder.php#L49
*/
if ($php = getenv('PHP_PEAR_PHP_BIN')) {
if (is_executable($php)) {
return $php;
}
}
/**
* propose
*/
if ($php = getenv('PHP_PEAR_PHP_BIN') and is_executable($php)) {
return $php;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment