28 if (self::$instance ===
null) {
29 self::$instance =
new self();
41 return defined(
'HHVM_VERSION');
59 return (php_sapi_name() ==
'fpm-fcgi');
100 return ini_get(
'hhvm.log.runtime_error_reporting_level');
102 return ini_get(
'error_reporting');
112 return (
bool) ini_get(
'hhvm.log.use_log_file');
114 return (
bool) ini_get(
'log_errors');
124 return (
bool) ini_get(
'hhvm.debug.server_error_message');
126 return (
bool) ini_get(
'display_errors');
An exception for terminatinating execution or to throw for unit testing.
__toString()
A string representation of the runtime.
__construct()
The runtime is a constant state during one request, so please use the public static getInstance() to ...
isPHP()
Returns true when the runtime used is PHP.
isHHVM()
Returns true when the runtime used is HHVM.