Method |
Description |
|
IP ( boolean $trustProxy = false ) : string |
Get remote IP |
|
canCollectCodeCoverage ( ) : boolean |
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. |
|
getDocRoot ( ) : string |
Return document root |
|
getHome ( ) : string |
Returns a home directory of current user. |
|
getMemory ( boolean $isPeak = true ) : string |
Get usage memory |
|
getName ( ) : string |
|
|
getNameWithVersion ( ) : string |
|
|
getVendorUrl ( ) : string |
|
|
getVersion ( ) : string |
|
|
hasPHPDBGCodeCoverage ( ) : boolean |
Returns true when the runtime used is PHP with the PHPDBG SAPI
and the phpdbg_*_oplog() functions are available (PHP >= 7.0). |
|
hasXdebug ( ) : boolean |
Returns true when the runtime used is PHP and Xdebug is loaded. |
|
iniGet ( string $varName ) : mixed |
Alias fo ini_get function |
|
iniSet ( string $varName, string $newValue ) : mixed |
Alias fo ini_set function |
|
isFunc ( $funcName ) : boolean |
|
|
isHHVM ( ) : boolean |
Returns true when the runtime used is HHVM. |
|
isPHP ( string $version, string $current = PHP_VERSION ) : boolean |
|
|
isPHP53 ( string $current = PHP_VERSION ) : boolean |
|
|
isPHP7 ( string $current = PHP_VERSION ) : boolean |
|
|
isPHPDBG ( ) : boolean |
Returns true when the runtime used is PHP with the PHPDBG SAPI. |
|
isRealPHP ( ) : boolean |
Returns true when the runtime used is PHP without the PHPDBG SAPI. |
|
isRoot ( ) : boolean |
Check is current user ROOT |
|
isWin ( ) : boolean |
Check is current OS Windows |
|
setMemory ( string $newLimit = '256M' ) |
Set new memory limit |
|
setTime ( integer $newLimit ) |
Set PHP execution time limit (doesn't work in safe mode) |
|