[Process] use component exception

This commit is contained in:
Johannes M. Schmitt 2011-04-08 14:27:03 +02:00
parent 34beec2161
commit 8132102237

View File

@ -11,7 +11,7 @@
namespace Symfony\Component\Process;
use Symfony\Component\Process\Exception\ExecutableNotFoundException;
use Symfony\Component\Process\Exception\RuntimeException;
/**
* An executable finder specifically designed for the PHP executable.
@ -32,7 +32,7 @@ class PhpExecutableFinder
{
if ($php = getenv('PHP_PATH')) {
if (!is_executable($php)) {
throw new \RuntimeException('The defined PHP_PATH environment variable is not a valid PHP executable.');
throw new RuntimeException('The defined PHP_PATH environment variable is not a valid PHP executable.');
}
return $php;