class PhpEnv

Class PhpEnv

Methods

static string
getVersion()

Get PHP version

static boolean
isEmbed()

isEmbed

static bool
isCgi()

No description

static boolean
isCli()

is Cli

static boolean
isBuiltInServer()

is Build In Server run server use like: php -S 127.0.0.1:8085

static bool
isDevServer()

No description

static boolean
isWeb()

isWeb

static boolean
isHHVM()

isHHVM

static boolean
isPHP()

isPHP

static void
setStrict()

setStrict

static void
setMuted()

setMuted

static bool
hasExtension(string $name)

No description

static boolean
hasXDebug()

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

static bool
extIsLoaded(string $name, bool|false $throwException = false)

No description

static array|bool
checkExtList(array $extensions = array())

检查多个扩展加载情况

static array
getLoadedExtension(bool $zend_extensions = false)

返回加载的扩展

Details

at line 25
static string getVersion()

Get PHP version

Return Value

string

at line 34
static boolean isEmbed()

isEmbed

Return Value

boolean

at line 42
static bool isCgi()

Return Value

bool

at line 51
static boolean isCli()

is Cli

Return Value

boolean

at line 61
static boolean isBuiltInServer()

is Build In Server run server use like: php -S 127.0.0.1:8085

Return Value

boolean

at line 69
static bool isDevServer()

Return Value

bool

at line 78
static boolean isWeb()

isWeb

Return Value

boolean

at line 95
static boolean isHHVM()

isHHVM

Return Value

boolean

at line 104
static boolean isPHP()

isPHP

Return Value

boolean

at line 113
static void setStrict()

setStrict

Return Value

void

at line 122
static void setMuted()

setMuted

Return Value

void

at line 131
static bool hasExtension(string $name)

Parameters

string $name

Return Value

bool

at line 140
static boolean hasXDebug()

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

Return Value

boolean

at line 151
static bool extIsLoaded(string $name, bool|false $throwException = false)

Parameters

string $name
bool|false $throwException

Return Value

bool

Exceptions

RuntimeException

at line 167
static array|bool checkExtList(array $extensions = array())

检查多个扩展加载情况

Parameters

array $extensions

Return Value

array|bool

at line 188
static array getLoadedExtension(bool $zend_extensions = false)

返回加载的扩展

Parameters

bool $zend_extensions

Return Value

array