Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Undefined array key "SERVER_SOFTWARE" in index.php #3408

Closed
lufog opened this issue Jul 20, 2021 · 1 comment
Closed

Warning: Undefined array key "SERVER_SOFTWARE" in index.php #3408

lufog opened this issue Jul 20, 2021 · 1 comment

Comments

@lufog
Copy link

lufog commented Jul 20, 2021

image

OS: Windows 11
PHP: 8.0.8 ts x64
Server: php -S 0.0.0.0:80 system\router.php

@rhukster
Copy link
Member

Replace line 20 in index.php with:

    $symfony_server = stripos(getenv('_'), 'symfony') !== false || stripos($_SERVER['SERVER_SOFTWARE'] ?? '', 'symfony') !== false || stripos($_ENV['SERVER_SOFTWARE'] ?? '', 'symfony') !== false;

mahagr added a commit that referenced this issue Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants