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

Modernise parse_str description #4556

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

IMSoP
Copy link
Collaborator

@IMSoP IMSoP commented Mar 22, 2025

Most of the text still acted as though "create a bunch of local variables" was the normal behaviour, even though it's been discouraged for years, and isn't even supported in PHP 8.

There were also a few incorrect or questionable uses of markup.

Most of the text still acted as though "create a bunch of local variables" was the normal behaviour, even though it's been discouraged for years, and isn't even supported in PHP 8.

There were also a few incorrect or questionable uses of markup.
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

This is a clear improvement already.

@TimWolla TimWolla requested a review from Girgias March 23, 2025 15:57
@IMSoP
Copy link
Collaborator Author

IMSoP commented Mar 23, 2025

Incidentally, it surprised me that this is in the "String Functions" section of the manual rather than "URL Functions" alongside http_build_query, which is its reverse (despite having a completely different name and signature).

Presumably that's because the manual is following the source code, and PHP_FUNCTION(parse_str) is defined in "string.c". I'm not sure what the implications of changing that would be.

Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

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

I don't have further remarks, but defer to Girgias for final approval.

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