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

$http_response_header: Improve example #2854

Merged
merged 3 commits into from
Oct 16, 2023
Merged

$http_response_header: Improve example #2854

merged 3 commits into from
Oct 16, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Oct 13, 2023

adding a bit of comment, as one could easily miss the NULL beeing printed after the big block of headers in https://github.com/php/doc-en/pull/2854/files#diff-138db1f807d6240d97d7f6124fecf1b519567a6add6b6d85fc5e7862b8fb418eL62

@@ -59,6 +59,7 @@ array(9) {
[8]=>
string(38) "Content-Type: text/html; charset=UTF-8"
}
Warning: Undefined variable $http_response_header
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to make it even more clear, I have added the emitted php-src warning

@TimWolla TimWolla changed the title added example comments $http_response_header: Improve example Oct 16, 2023
@TimWolla TimWolla merged commit c2cf229 into php:master Oct 16, 2023
2 checks passed
@TimWolla
Copy link
Member

Thanks!

@staabm staabm deleted the patch-2 branch October 16, 2023 15:34
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

Successfully merging this pull request may close these issues.

2 participants