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

Return Value

boolean

at line line 41
static boolean isCli()

isCli

Return Value

boolean

at line line 57
static boolean isHHVM()

isHHVM

Return Value

boolean

at line line 67
static boolean isPHP()

isPHP

Return Value

boolean

at line line 77
static boolean isEmbed()

isEmbed

Return Value

boolean

at line line 92
string getVersion()

Get PHP version

Return Value

string

at line line 109
static void setStrict()

setStrict

Return Value

void

at line line 119
static void setMuted()

setMuted

Return Value

void

at line line 129
boolean hasXdebug()

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

Return Value

boolean

at line line 139
static boolean hasPcntl()

supportPcntl

Return Value

boolean

at line line 149
static boolean hasCurl()

supportCurl

Return Value

boolean

at line line 159
static boolean hasMcrypt()

supportMcrypt

Return Value

boolean