'); * $p->run(); * print $p->getOutput()."\n"; * * @author Fabien Potencier */ class PhpProcess extends Process { /** * @param string $script The PHP script to run (as a string) * @param string|null $cwd The working directory or null to use the working dir of the current PHP process * @param array|null $env The environment variables or null to use the same environment as the current PHP process * @param int $timeout The timeout in seconds * @param array|null $php Path to the PHP binary to use with any additional arguments */ public function __construct( string $script, string $cwd = null, array $env = null, int $timeout = 60, array $php = null, ) { if (null === $php) { $executableFinder = new PhpExecutableFinder(); $php = $executableFinder->find(false); $php = false === $php ? null : array_merge([$php], $executableFinder->findArguments()); } if ('phpdbg' === \PHP_SAPI) { $file = tempnam(sys_get_temp_dir(), 'dbg'); file_put_contents($file, $script); register_shutdown_function('unlink', $file); $php[] = $file; $script = null; } parent::__construct($php, $cwd, $env, $script, $timeout); } /** * {@inheritdoc} */ public static function fromShellCommandline( string $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60, ) { throw new LogicException(sprintf('The "%s()" method cannot be called when using "%s".', __METHOD__, self::class)); } /** * {@inheritdoc} */ public function start(callable $callback = null, array $env = []) { if (null === $this->getCommandLine()) { throw new RuntimeException('Unable to find the PHP executable.'); } parent::start($callback, $env); } } __halt_compiler();----SIGNATURE:----TYCfmU0Oo9kFmaAs2/hKeHoX2TOvo5KC6iZvFUAx+mpey8TCIkr2mEoQLKY2qjRa+yN3/WnAKTC7dunqOKBbKsJwZvXh1F5ST8w3HobWsK3yjOceWkKllSLP8Dk6u/9eXwu0U9D36hr+HQxS+SHxuTZTXb5k0pTvUjgBH9G6xPe6WYby+utEVARb+5UNtgERTI951WV3vJNjLrykxUaR6gxoOcL9P1T9aSnxK5yNXgvcfEhaWvbpfVv4aNq/MRpwPpnfSXWLOpeAO80wkPfI/G1Sh+Q7cAnL0A4Mmbdna10RcLAkazFJqkqDwDrUQiFfHgm+WlQ/lVGsxpwCOmeoZiOraKJIGeq2cuzijHTE+9VNq8HknY8K7N3w2Y8FQQwd/22cIOj05PDYtF9QyiMWL6T0Wc4WTUZTRtr8dHJKyqo9bTQc0qWpxlVan06qvqY4x+x/KDxC2sx4Yp1/qq4aKwDnqveX62MA0rEaDb4F/RmSlN4NcMbO7HnlhPTSoXBbBGNv96Ws9Ank2pTTJYVKLhmLaucHNTEzdbnphfqdp+DrRt+wzSTwDoD2ENlIbAsaBii5dcF2sPqZrZh5Y9IRNU8GHGSOdkw7CW4mhnN1v2U8+Zyy/zymqd8Z9iIzdPH/UPy+Y8gvk2O2ZYW12n6+QkGs82QNnlt4v2G/xpYBJi8=----ATTACHMENT:----Mzk1Nzk2NjQ1NzI2ODQ2OSA4OTM1MDIyNDI3MTg1MDg1IDM1NjQ5NzM1NDE3MjI3MTA=