-
Notifications
You must be signed in to change notification settings - Fork 498
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
Ignore locale when creating the HTTP version string from a float #339
Conversation
Codecov Report
@@ Coverage Diff @@
## master #339 +/- ##
=========================================
Coverage 92.11% 92.11%
Complexity 760 760
=========================================
Files 21 21
Lines 1762 1762
=========================================
Hits 1623 1623
Misses 139 139
Continue to review full report at Codecov.
|
Not sure why #335 was closed as a support issue while the bug identified in there, and patched here, is still there. Remerged with master as per #346 (comment) in the hope to get all tests to pass and get this PR accepted. Something still seems wrong with Travis? Seeing errors connecting to localhost, even from cURL when this patch only touches the fsocket code. Let me know what I can do to get this resolved! |
Reopened #335, apologies. The tests are likely failing due to transient issues; the nature of working with servers is that occasionally things fail for no reason. I've restarted those tests. |
Tests are now passing after restarting, thanks! |
Many thanks for merging! 🎊 |
I've opened PR #521 to add a regression test for this fix. |
This should fix #335.
Rather than using
%f
, this should use the non-locale aware%F
. That way PHP will always use a period (.
) for the decimal separator in the HTTP version, and never fallback to a comma (,
).I wasn’t sure how to add a test for this, as I’d want to intercept the socket message somehow. But to illustrate the issue: