Skip to content

Web: Array query parameters for $_GET/$_POST (#200)#222

Merged
PurHur merged 1 commit into
masterfrom
fix/issue-200-array-query-params
May 18, 2026
Merged

Web: Array query parameters for $_GET/$_POST (#200)#222
PurHur merged 1 commit into
masterfrom
fix/issue-200-array-query-params

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 18, 2026

Summary

  • Fix Superglobals::populateFormEncoded() to merge full parse_str() output (list keys like tags[]= and nested keys like user[name]=).
  • Resolve indirect array containers in TYPE_ARRAY_DIM_FETCH so chained access ($_GET['user']['name']) works.
  • Add unit tests and a RealWorld PHPT for the acceptance query string.

Test plan

Closes #200

Made with Cursor

Merge parse_str() output into VM superglobals for list and nested keys,
resolve indirect containers in array dim fetch for chained access, and
add unit/PHPT coverage for tags[]= and user[name]= style queries.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit b2986e8 into master May 18, 2026
@PurHur PurHur deleted the fix/issue-200-array-query-params branch May 18, 2026 18:06
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.

Web: Array query parameters (name[]=a&name[]=b) and nested $_GET keys

1 participant