/** @return void */ private function createPhpInterpreter() { $args = $this->options['-C'] ? [] : ['-n']; if ($this->options['-c']) { array_push($args, '-c', $this->options['-c']); } elseif (!$this->options['--info'] && !$this->options['-C']) { echo "Note: No php.ini is used.\n"; } if (in_array($this->options['-o'], ['tap', 'junit'])) { array_push($args, '-d', 'html_errors=off'); } foreach ($this->options['-d'] as $item) { array_push($args, '-d', $item); } $this->interpreter = new PhpInterpreter($this->options['-p'], $args); if ($error = $this->interpreter->getStartupError()) { echo Dumper::color('red', "PHP startup error: {$error}") . "\n"; } }