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

Fixes #5 : Handle Response::sendHeaders() to not silently returns when header already sent #41

Merged
merged 9 commits into from Aug 18, 2020

Conversation

samsonasik
Copy link
Member

Signed-off-by: Abdul Malik Ikhsan samsonasik@gmail.com

Q A
BC Break yes

Description

Fixes #5 Handle Response::sendHeaders() to not silently returns when header already sent

…rns when header already sent

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

travis build green 🎉

@Ocramius
Copy link
Member

Ocramius commented Aug 9, 2020

Given the stability of this library, I'm not sure if introducing this BC break at this point will be worth it though 🤔

src/PhpEnvironment/Response.php Outdated Show resolved Hide resolved
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

travis build green 🎉

Copy link
Member

@weierophinney weierophinney left a comment

Choose a reason for hiding this comment

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

Getting there! I've marked a few changes for you to make. Additionally, please add some documentation in the docs/book/response.md file around this; when you do, please make sure you indicate it's "since 2.13.0".

src/PhpEnvironment/Response.php Outdated Show resolved Hide resolved
src/PhpEnvironment/Response.php Outdated Show resolved Hide resolved
test/PhpEnvironment/ResponseTest.php Outdated Show resolved Hide resolved
…nd make expectException* message call immediate call before actual method call

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

travis build green 🎉

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik
Copy link
Member Author

@weierophinney I've added documentation for it.

docs/book/response.md Outdated Show resolved Hide resolved
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
docs/book/response.md Outdated Show resolved Hide resolved
Co-authored-by: Frank Brückner <info@froschdesignstudio.de>
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@weierophinney weierophinney added this to the 2.13.0 milestone Aug 18, 2020
@weierophinney weierophinney added Bug Something isn't working Enhancement labels Aug 18, 2020
@weierophinney weierophinney changed the base branch from develop to 2.13.x August 18, 2020 16:44
@weierophinney weierophinney merged commit f2fdfd0 into laminas:2.13.x Aug 18, 2020
weierophinney added a commit that referenced this pull request Aug 18, 2020
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@samsonasik samsonasik deleted the handle-headersent branch August 18, 2020 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants