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

getallheaders() might return false #2632

Closed
adriansuter opened this issue Apr 17, 2019 · 0 comments
Closed

getallheaders() might return false #2632

adriansuter opened this issue Apr 17, 2019 · 0 comments

Comments

@adriansuter
Copy link
Contributor

Hi there

According to the php documentation, the function getallheaders() might return false. In fact, on my hosting, the function even returns null.

Probably you should check, if the variable $headers is an array and skip if not.

$headers = array_change_key_case($headers, CASE_LOWER);

On my hosting I get the following warning:

array_change_key_case() expects parameter 1 to be array, null given

Thanks
Adrian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants