PhpHelper
class PhpHelper (View source)
The PhpEnvironment class.
Methods
static boolean
isWeb()
isWeb
static boolean
isCli()
isCli
static boolean
isHHVM()
isHHVM
static boolean
isPHP()
isPHP
static boolean
isEmbed()
isEmbed
string
getVersion()
Get PHP version
static void
setStrict()
setStrict
static void
setMuted()
setMuted
boolean
hasXdebug()
Returns true when the runtime used is PHP and Xdebug is loaded.
static boolean
hasPcntl()
supportPcntl
static boolean
hasCurl()
supportCurl
static boolean
hasMcrypt()
supportMcrypt
Details
at line line 23
static boolean
isWeb()
isWeb
at line line 41
static boolean
isCli()
isCli
at line line 57
static boolean
isHHVM()
isHHVM
at line line 67
static boolean
isPHP()
isPHP
at line line 77
static boolean
isEmbed()
isEmbed
at line line 92
string
getVersion()
Get PHP version
at line line 109
static void
setStrict()
setStrict
at line line 119
static void
setMuted()
setMuted
at line line 129
boolean
hasXdebug()
Returns true when the runtime used is PHP and Xdebug is loaded.
at line line 139
static boolean
hasPcntl()
supportPcntl
at line line 149
static boolean
hasCurl()
supportCurl
at line line 159
static boolean
hasMcrypt()
supportMcrypt