X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fprocess%2FPhpProcess.php;h=5b84783067af969a1c642fa52d9cf56cff3430a3;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=d3fd384afc4a3494a19dc8e56d3e9ec5ba7ae794;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/process/PhpProcess.php b/vendor/symfony/process/PhpProcess.php index d3fd384af..5b8478306 100644 --- a/vendor/symfony/process/PhpProcess.php +++ b/vendor/symfony/process/PhpProcess.php @@ -16,9 +16,9 @@ use Symfony\Component\Process\Exception\RuntimeException; /** * PhpProcess runs a PHP script in an independent process. * - * $p = new PhpProcess(''); - * $p->run(); - * print $p->getOutput()."\n"; + * $p = new PhpProcess(''); + * $p->run(); + * print $p->getOutput()."\n"; * * @author Fabien Potencier */ @@ -39,7 +39,7 @@ class PhpProcess extends Process } else { $php = array_merge(array($php), $executableFinder->findArguments()); } - if ('phpdbg' === PHP_SAPI) { + if ('phpdbg' === \PHP_SAPI) { $file = tempnam(sys_get_temp_dir(), 'dbg'); file_put_contents($file, $script); register_shutdown_function('unlink', $file); @@ -69,7 +69,7 @@ class PhpProcess extends Process if (null === $this->getCommandLine()) { throw new RuntimeException('Unable to find the PHP executable.'); } - $env = 1 < func_num_args() ? func_get_arg(1) : null; + $env = 1 < \func_num_args() ? func_get_arg(1) : null; parent::start($callback, $env); }