PhpEnv
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
at line 34
static boolean
isEmbed()
isEmbed
at line 42
static bool
isCgi()
at line 51
static boolean
isCli()
is Cli
at line 61
static boolean
isBuiltInServer()
is Build In Server
run server use like: php -S 127.0.0.1:8085
at line 69
static bool
isDevServer()
at line 78
static boolean
isWeb()
isWeb
at line 95
static boolean
isHHVM()
isHHVM
at line 104
static boolean
isPHP()
isPHP
at line 113
static void
setStrict()
setStrict
at line 122
static void
setMuted()
setMuted
at line 131
static bool
hasExtension(string $name)
at line 140
static boolean
hasXDebug()
Returns true when the runtime used is PHP and Xdebug is loaded.
at line 151
static bool
extIsLoaded(string $name, bool|false $throwException = false)
at line 167
static array|bool
checkExtList(array $extensions = array())
检查多个扩展加载情况
at line 188
static array
getLoadedExtension(bool $zend_extensions = false)
返回加载的扩展