Fix issue in PHP 5.3

master
Mike Koch 6 years ago
parent d4b3c9acc9
commit 05b913c53a
No known key found for this signature in database
GPG Key ID: 9BA5D7F8391455ED

@ -28,7 +28,7 @@ $applicationContext = $builder->build();
// Fix for getallheaders() on PHP-FPM and nginx
if (!function_exists('getallheaders')) {
function getallheaders() {
$headers = [];
$headers = array();
foreach ($_SERVER as $name => $value) {
if (substr($name, 0, 5) == 'HTTP_') {
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;

Loading…
Cancel
Save