/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Process/Tests/OutputMemoryLimitProcess.php
28 строк
828 B
Jérôme Tamarelle
PHP files cannot be executable without shebang
04 ноя 2023, 23:16
Не верифицирован
04 ноя 2023, 23:16
09992b7
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Process\Tests; use Symfony\Component\Process\PhpSubprocess; use Symfony\Component\Process\Process; require is_file(\dirname(__DIR__).'/vendor/autoload.php') ? \dirname(__DIR__).'/vendor/autoload.php' : \dirname(__DIR__, 5).'/vendor/autoload.php'; ['e' => $php, 'p' => $process] = getopt('e:p:') + ['e' => 'php', 'p' => 'Process']; if ('Process' === $process) { $p = new Process([$php, __DIR__.'/Fixtures/memory.php']); } else { $p = new PhpSubprocess([__DIR__.'/Fixtures/memory.php'], null, null, 60, [$php]); } $p->mustRun(); echo $p->getOutput();