Fix issue in PHP 5.3
This commit is contained in:
parent
d4b3c9acc9
commit
05b913c53a
@ -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…
x
Reference in New Issue
Block a user