public static function setUpBeforeClass() { $phpBin = new PhpExecutableFinder(); self::$phpBin = getenv('SYMFONY_PROCESS_PHP_TEST_BINARY') ?: ('phpdbg' === PHP_SAPI ? 'php' : $phpBin->find()); if ('\\' !== DIRECTORY_SEPARATOR) { // exec is mandatory to deal with sending a signal to the process // see https://github.com/symfony/symfony/issues/5030 about prepending // command with exec self::$phpBin = 'exec ' . self::$phpBin; } ob_start(); phpinfo(INFO_GENERAL); self::$sigchild = false !== strpos(ob_get_clean(), '--enable-sigchild'); }
public static function setUpBeforeClass() { $phpBin = new PhpExecutableFinder(); self::$phpBin = 'phpdbg' === PHP_SAPI ? 'php' : $phpBin->find(); }