/** * Constructor. * * @param string $script The PHP script to run (as a string) * @param string $cwd The working directory * @param array $env The environment variables * @param int $timeout The timeout in seconds * @param array $options An array of options for proc_open * * @api */ public function __construct($script, $cwd = null, array $env = array(), $timeout = 60, array $options = array()) { $executableFinder = new Symfony_Process_PhpExecutableFinder(); if (false === ($php = $executableFinder->find())) { $php = null; } parent::__construct($php, $cwd, $env, $script, $timeout, $options); }