file-fetcher
Public Member Functions | List of all members
SebastianBergmann\Environment\Runtime Class Reference

Detailed Description

Utility class for HHVM/PHP environment handling.

Public Member Functions

 canCollectCodeCoverage ()
 
 discardsComments ()
 
 getBinary ()
 
 getNameWithVersion ()
 
 getNameWithVersionAndCodeCoverageDriver ()
 
 getName ()
 
 getVendorUrl ()
 
 getVersion ()
 
 hasXdebug ()
 
 isHHVM ()
 
 isPHP ()
 
 isPHPDBG ()
 
 hasPHPDBGCodeCoverage ()
 
 hasPCOV ()
 
 getCurrentSettings (array $values)
 

Member Function Documentation

◆ canCollectCodeCoverage()

SebastianBergmann\Environment\Runtime::canCollectCodeCoverage ( )

Returns true when Xdebug or PCOV is available or the runtime used is PHPDBG.

◆ discardsComments()

SebastianBergmann\Environment\Runtime::discardsComments ( )

Returns true when Zend OPcache is loaded, enabled, and is configured to discard comments.

◆ getBinary()

SebastianBergmann\Environment\Runtime::getBinary ( )

Returns the path to the binary of the current runtime. Appends ' –php' to the path when the runtime is HHVM.

◆ getCurrentSettings()

SebastianBergmann\Environment\Runtime::getCurrentSettings ( array  $values)

Parses the loaded php.ini file (if any) as well as all additional php.ini files from the additional ini dir for a list of all configuration settings loaded from files at startup. Then checks for each php.ini setting passed via the $values parameter whether this setting has been changed at runtime. Returns an array of strings where each string has the format key=value denoting the name of a changed php.ini setting with its new value.

Returns
string[]

◆ getName()

SebastianBergmann\Environment\Runtime::getName ( )

◆ getNameWithVersion()

SebastianBergmann\Environment\Runtime::getNameWithVersion ( )

◆ getNameWithVersionAndCodeCoverageDriver()

SebastianBergmann\Environment\Runtime::getNameWithVersionAndCodeCoverageDriver ( )

◆ getVendorUrl()

SebastianBergmann\Environment\Runtime::getVendorUrl ( )

◆ getVersion()

SebastianBergmann\Environment\Runtime::getVersion ( )

◆ hasPCOV()

SebastianBergmann\Environment\Runtime::hasPCOV ( )

Returns true when the runtime used is PHP with PCOV loaded and enabled

◆ hasPHPDBGCodeCoverage()

SebastianBergmann\Environment\Runtime::hasPHPDBGCodeCoverage ( )

Returns true when the runtime used is PHP with the PHPDBG SAPI and the phpdbg_*_oplog() functions are available (PHP >= 7.0).

◆ hasXdebug()

SebastianBergmann\Environment\Runtime::hasXdebug ( )

Returns true when the runtime used is PHP and Xdebug is loaded.

◆ isHHVM()

SebastianBergmann\Environment\Runtime::isHHVM ( )

Returns true when the runtime used is HHVM.

◆ isPHP()

SebastianBergmann\Environment\Runtime::isPHP ( )

Returns true when the runtime used is PHP without the PHPDBG SAPI.

◆ isPHPDBG()

SebastianBergmann\Environment\Runtime::isPHPDBG ( )

Returns true when the runtime used is PHP with the PHPDBG SAPI.


The documentation for this class was generated from the following file: