26 if(self::$instance === null)
28 self::$instance =
new self();
31 return self::$instance;
57 return (php_sapi_name() ==
'fpm-fcgi');
105 return ini_get(
'hhvm.log.runtime_error_reporting_level');
109 return ini_get(
'error_reporting');
120 return (
bool)ini_get(
'hhvm.log.use_log_file');
124 return (
bool)ini_get(
'log_errors');
135 return (
bool)ini_get(
'hhvm.debug.server_error_message');
139 return (
bool)ini_get(
'display_errors');
isPHP()
Returns true when the runtime used is PHP.
isHHVM()
Returns true when the runtime used is HHVM.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
__construct()
The runtime is a constant state during one request, so please use the public static getInstance() to ...
__toString()
A string representation of the runtime.