Add check for existence of $_SERVER['SERVER_SOFTWARE'] (#31)
This commit is contained in:
parent
64247d6ffc
commit
2fd6922c9e
1 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ class OpCacheService
|
|||
$config['version'],
|
||||
[
|
||||
'php' => phpversion(),
|
||||
'server' => $_SERVER['SERVER_SOFTWARE'],
|
||||
'server' => empty($_SERVER['SERVER_SOFTWARE']) ? '' : $_SERVER['SERVER_SOFTWARE'],
|
||||
'host' => (function_exists('gethostname')
|
||||
? gethostname()
|
||||
: (php_uname('n')
|
||||
|
|
Loading…
Reference in a new issue