19declare(strict_types=1);
 
   39        if (self::$instance === 
null) {
 
   40            self::$instance = 
new self();
 
   48        return defined(
'HHVM_VERSION');
 
   58        return PHP_SAPI === 
'fpm-fcgi';
 
   87            return (
int) ini_get(
'hhvm.log.runtime_error_reporting_level');
 
   90        return (
int) ini_get(
'error_reporting');
 
   96            return (
bool) ini_get(
'hhvm.log.use_log_file');
 
   99        return (
bool) ini_get(
'log_errors');
 
  105            return (
bool) ini_get(
'hhvm.debug.server_error_message');
 
  108        return (
bool) ini_get(
'display_errors');
 
  113        if (defined(
'PHP_BINARY') && PHP_BINARY !== 
'') {
 
  114            return escapeshellarg(PHP_BINARY);
 
  117        $possibleBinaryLocations = [
 
  119            PHP_BINDIR . 
'/php-cli.exe',
 
  120            PHP_BINDIR . 
'/php.exe',
 
  123        foreach ($possibleBinaryLocations as $binary) {
 
  124            if (is_readable($binary)) {
 
  125                return escapeshellarg($binary);
 
__construct()
The runtime is a constant state during one request, so please use the public static getInstance() to ...