|
file-fetcher
|
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) | |
| SebastianBergmann\Environment\Runtime::canCollectCodeCoverage | ( | ) |
Returns true when Xdebug or PCOV is available or the runtime used is PHPDBG.
| SebastianBergmann\Environment\Runtime::discardsComments | ( | ) |
Returns true when Zend OPcache is loaded, enabled, and is configured to discard comments.
| SebastianBergmann\Environment\Runtime::getBinary | ( | ) |
Returns the path to the binary of the current runtime. Appends ' –php' to the path when the runtime is HHVM.
| 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.
| SebastianBergmann\Environment\Runtime::getName | ( | ) |
| SebastianBergmann\Environment\Runtime::getNameWithVersion | ( | ) |
| SebastianBergmann\Environment\Runtime::getNameWithVersionAndCodeCoverageDriver | ( | ) |
| SebastianBergmann\Environment\Runtime::getVendorUrl | ( | ) |
| SebastianBergmann\Environment\Runtime::getVersion | ( | ) |
| SebastianBergmann\Environment\Runtime::hasPCOV | ( | ) |
Returns true when the runtime used is PHP with PCOV loaded and enabled
| 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).
| SebastianBergmann\Environment\Runtime::hasXdebug | ( | ) |
Returns true when the runtime used is PHP and Xdebug is loaded.
| SebastianBergmann\Environment\Runtime::isHHVM | ( | ) |
Returns true when the runtime used is HHVM.
| SebastianBergmann\Environment\Runtime::isPHP | ( | ) |
Returns true when the runtime used is PHP without the PHPDBG SAPI.
| SebastianBergmann\Environment\Runtime::isPHPDBG | ( | ) |
Returns true when the runtime used is PHP with the PHPDBG SAPI.
1.8.17