Add streams section to info

This commit is contained in:
Giuseppe Criscione 2021-07-20 15:20:58 +02:00
parent ac3102de43
commit 5a05cfec67

View File

@ -142,7 +142,6 @@ class OptionsController extends AbstractController
'Server API' => PHP_SAPI,
'Loaded php.ini' => php_ini_loaded_file(),
'Loaded Extensions' => implode(', ', get_loaded_extensions()),
'Stream Wrappers' => implode(', ', stream_get_wrappers()),
'Zend Engine Version' => zend_version()
],
'HTTP Request Headers' => HTTPRequest::headers()->toArray(),
@ -177,6 +176,10 @@ class OptionsController extends AbstractController
'Default MIME-Type' => ini_get('default_mimetype'),
'Default Charset' => ini_get('default_charset')
],
'Streams' => [
'Stream Wrappers' => implode(', ', stream_get_wrappers()),
'Allow URL Fopen' => ini_get('allow_url_fopen') ? 'true' : 'false'
],
'OPcache' => [
'Enabled' => $opcacheStatus['opcache_enabled'] ? 'true' : 'false',
'Cached Scripts' => $opcacheStatus['opcache_statistics']['num_cached_scripts'] ?? 0,