Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Bugfix: Header with value "0" is being discarded #344

Merged
merged 1 commit into from
Dec 20, 2018

Conversation

malukenho
Copy link
Member

  • Are you fixing a bug?

Linking #342

Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@weierophinney weierophinney merged commit 1e8b6c4 into zendframework:master Dec 20, 2018
weierophinney added a commit that referenced this pull request Dec 20, 2018
weierophinney added a commit that referenced this pull request Dec 20, 2018
weierophinney added a commit that referenced this pull request Dec 20, 2018
@weierophinney
Copy link
Member

Thanks, @malukenho!

@tptrixtop
Copy link

tptrixtop commented Dec 26, 2018

This fix cause an issue in apache on win, because there is a header

[SERVER_SIGNATURE] =><address>Apache/2.4.34 (Win32) OpenSSL/1.1.0i PHP/7.2.9 Server at api.best-office.local Port 8080</address>

That contains not "secured" data and it throws an exception and drop down our prod environment. It was really hard to find the root cause.

And not only on windows(our prod env is debian lamp server)

@vakata
Copy link
Contributor

vakata commented Jan 4, 2019

This is not a proper fix - all server vars are copied as headers, which is incorrect. The problem users are reporting is when some of the server values can not be used as headers. This should probably be reverted and a simple strlen($val) check added in its place.

@froschdesign
Copy link
Member

@vakata
Please look #349 and add your comment there. Thanks!

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

Successfully merging this pull request may close these issues.

8 participants