PhpBrew\Config::getCurrentPhpBin PHP Method

getCurrentPhpBin() public static method

public static getCurrentPhpBin ( )
    public static function getCurrentPhpBin()
    {
        return getenv('PHPBREW_PATH');
    }

Usage Example

Example #1
0
 public function execute($name)
 {
     switch ($name) {
         case 'home':
             echo Config::getPhpbrewRoot();
             break;
         case 'build':
             echo Config::getBuildDir();
             break;
         case 'bin':
             echo Config::getCurrentPhpBin();
             break;
         case 'include':
             echo Config::getVersionBuildPrefix(Config::getCurrentPhpName()) . DIRECTORY_SEPARATOR . 'include';
             break;
         case 'etc':
             echo Config::getVersionBuildPrefix(Config::getCurrentPhpName()) . DIRECTORY_SEPARATOR . 'etc';
             break;
     }
 }
All Usage Examples Of PhpBrew\Config::getCurrentPhpBin