19 declare(strict_types=1);
34 if (self::$instance ===
null) {
35 self::$instance =
new self();
38 return self::$instance;
43 return defined(
'HHVM_VERSION');
53 return PHP_SAPI ===
'fpm-fcgi';
82 return (
int) ini_get(
'hhvm.log.runtime_error_reporting_level');
85 return (
int) ini_get(
'error_reporting');
91 return (
bool) ini_get(
'hhvm.log.use_log_file');
94 return (
bool) ini_get(
'log_errors');
100 return (
bool) ini_get(
'hhvm.debug.server_error_message');
103 return (
bool) ini_get(
'display_errors');
108 if (defined(
'PHP_BINARY') && PHP_BINARY !==
'') {
109 return escapeshellarg(PHP_BINARY);
112 $possibleBinaryLocations = [
114 PHP_BINDIR .
'/php-cli.exe',
115 PHP_BINDIR .
'/php.exe',
118 foreach ($possibleBinaryLocations as $binary) {
119 if (is_readable($binary)) {
120 return escapeshellarg($binary);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct()
The runtime is a constant state during one request, so please use the public static getInstance() to ...