Lggr
All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
SebastianBergmann\Environment\Runtime Class Reference

Public Member Functions

 canCollectCodeCoverage ()
 
 discardsComments ()
 
 getBinary ()
 
 getNameWithVersion ()
 
 getName ()
 
 getVendorUrl ()
 
 getVersion ()
 
 hasXdebug ()
 
 isHHVM ()
 
 isPHP ()
 
 isPHPDBG ()
 
 hasPHPDBGCodeCoverage ()
 

Detailed Description

Utility class for HHVM/PHP environment handling.

Member Function Documentation

◆ canCollectCodeCoverage()

SebastianBergmann\Environment\Runtime::canCollectCodeCoverage ( )

Returns true when Xdebug is supported or the runtime used is PHPDBG.

◆ discardsComments()

SebastianBergmann\Environment\Runtime::discardsComments ( )

Returns true when OPcache is loaded and opcache.save_comments=0 is set.

Code taken from Doctrine\Common\Annotations\AnnotationReader::__construct().

◆ 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.

◆ 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).

@codeCoverageIgnore

◆ 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: