Skip to content
This repository was archived by the owner on May 16, 2018. It is now read-only.

Conversation

@weierophinney
Copy link
Member

With the ZF2015-04 patch in 1.12.12, we were no longer allowing non-string, non-stringable objects as header values. This broke a number of other classes, however, which required integer and/or float values (e.g., to set a Content-Length header). This patch casts those types to strings before attempting to set them as header values.

With the ZF2015-04 patch, we were no longer allowing non-string, non-stringable
objects as header values. This broke a number of other classes, however, which
required integer and/or float values (e.g., to set a Content-Length header).
This patch casts those types to strings before attempting to set them as header
values.
Copy link
Member

Choose a reason for hiding this comment

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

s/is_string/is_scalar/ could be enough

Copy link
Member Author

Choose a reason for hiding this comment

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

As noted in IRC, the only other scalar types we can safely cast to string are floats and integers. Booleans should not be cast.

Man unit tests sufferred from the same issues as the Zend_Http_* tests, in that
the canned responses had incorrect line endings in them, making them fail the
new logic implemented to protect against message splitting. These have now all
been updated.
@froschdesign
Copy link
Member

@weierophinney
No signed CLA! 😂

@weierophinney
Copy link
Member Author

@weierophinney
No signed CLA!

Hahahahahahahaha! I've pinged @gianarb to look into the CLA webhook. :) Thanks for merging, @froschdesign - I'll start the release process.

@froschdesign
Copy link
Member

I've pinged @gianarb to look into the CLA webhook.

👍

@weierophinney weierophinney deleted the hotfix/less-strict-headers branch May 20, 2015 15:05
@gianarb
Copy link

gianarb commented May 20, 2015

Sorry :D :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants