Skip to content

Conversation

@hakre
Copy link
Contributor

@hakre hakre commented Jun 22, 2025

compare Section 4.1 of RFC-2616 etc.

    generic-message = start-line
                      *(message-header CRLF)
                      CRLF
                      [ message-body ]

RFC-2616: https://www.rfc-editor.org/rfc/rfc2616#section-4.1
ok: /reference/stream/functions/stream-context-set-default.xml etc.

@hakre hakre marked this pull request as draft June 22, 2025 13:16
@hakre
Copy link
Contributor Author

hakre commented Jun 22, 2025

While double-checking against other examples below reference/stream I've seen that they can benefit from streamlining the improvements of #2956 (PHP 5.4 array syntax).

hakre added 2 commits June 22, 2025 15:53
correction of the formally wrong comment and place in the example code.

streamlining the example code style on separating multiple headers over multiple lines.

compare Section 4.1 of RFC-2616 etc.

        generic-message = start-line
                          *(message-header CRLF)
                          CRLF
                          [ message-body ]

RFC-2616: https://www.rfc-editor.org/rfc/rfc2616#section-4.1
ok: /reference/stream/functions/stream-context-set-default.xml etc.
in reference to 037266a ("fix(reference/stream): HTTP headers are U+0D U+0A (CR LF) separated", 2025-06-22) streamline by 'http' 'header' stream context option.
@hakre hakre marked this pull request as ready for review June 22, 2025 14:28
@hakre hakre requested a review from ndossche as a code owner June 22, 2025 14:28
Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

Nice catch, and nice improvements

@ndossche ndossche merged commit 3abd17e into php:master Jun 22, 2025
2 checks passed
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