Runtime
in package
Utility class for HHVM/PHP environment handling.
Table of Contents
- $binary : string
- canCollectCodeCoverage() : bool
- Returns true when Xdebug is supported or the runtime used is PHPDBG (PHP >= 7.0).
- getBinary() : string
- Returns the path to the binary of the current runtime.
- getName() : string
- getNameWithVersion() : string
- getVendorUrl() : string
- getVersion() : string
- hasPHPDBGCodeCoverage() : bool
- Returns true when the runtime used is PHP with the PHPDBG SAPI and the phpdbg_*_oplog() functions are available (PHP >= 7.0).
- hasXdebug() : bool
- Returns true when the runtime used is PHP and Xdebug is loaded.
- isHHVM() : bool
- Returns true when the runtime used is HHVM.
- isPHP() : bool
- Returns true when the runtime used is PHP without the PHPDBG SAPI.
- isPHPDBG() : bool
- Returns true when the runtime used is PHP with the PHPDBG SAPI.
Properties
$binary
private
static string
$binary
Methods
canCollectCodeCoverage()
Returns true when Xdebug is supported or the runtime used is PHPDBG (PHP >= 7.0).
public
canCollectCodeCoverage() : bool
Return values
bool —getBinary()
Returns the path to the binary of the current runtime.
public
getBinary() : string
Appends ' --php' to the path when the runtime is HHVM.
Return values
string —getName()
public
getName() : string
Return values
string —getNameWithVersion()
public
getNameWithVersion() : string
Return values
string —getVendorUrl()
public
getVendorUrl() : string
Return values
string —getVersion()
public
getVersion() : string
Return values
string —hasPHPDBGCodeCoverage()
Returns true when the runtime used is PHP with the PHPDBG SAPI and the phpdbg_*_oplog() functions are available (PHP >= 7.0).
public
hasPHPDBGCodeCoverage() : bool
Return values
bool —hasXdebug()
Returns true when the runtime used is PHP and Xdebug is loaded.
public
hasXdebug() : bool
Return values
bool —isHHVM()
Returns true when the runtime used is HHVM.
public
isHHVM() : bool
Return values
bool —isPHP()
Returns true when the runtime used is PHP without the PHPDBG SAPI.
public
isPHP() : bool
Return values
bool —isPHPDBG()
Returns true when the runtime used is PHP with the PHPDBG SAPI.
public
isPHPDBG() : bool