PhpInterpreter
class PhpInterpreter
Wraps a PHP executable and its resolved version, extensions, and command-line options.
Methods
__construct(string $path, array $args = [])
No description
withArguments(array $args)
Returns a new instance with additional command-line arguments appended.
withPhpIniOption(string $name, string|null $value = null)
Returns a new instance with a -d INI option appended to the command line.
string
getCommandLine()
No description
array
getCommand()
No description
string
getVersion()
No description
array
getCodeCoverageEngines()
No description
bool
isCgi()
No description
string
getStartupError()
No description
string
getShortInfo()
No description
bool
hasExtension(string $name)
No description
Details
at line 27
__construct(string $path, array $args = [])
No description
at line 81
PhpInterpreter
withArguments(array $args)
Returns a new instance with additional command-line arguments appended.
at line 92
PhpInterpreter
withPhpIniOption(string $name, string|null $value = null)
Returns a new instance with a -d INI option appended to the command line.
at line 98
string
getCommandLine()
No description
at line 105
array
getCommand()
No description
at line 111
string
getVersion()
No description
at line 118
array
getCodeCoverageEngines()
No description
at line 124
bool
isCgi()
No description
at line 130
string
getStartupError()
No description
at line 136
string
getShortInfo()
No description
at line 143
bool
hasExtension(string $name)
No description