Skip to content

Stdlib: urlencode, rawurlencode, parse_url (#76) - #111

Merged
PurHur merged 1 commit into
masterfrom
issue-76-url-stdlib
May 18, 2026
Merged

PurHur merged 1 commit into
masterfrom
issue-76-url-stdlib

Conversation

@PurHur

@PurHur PurHur commented May 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add urlencode() and rawurlencode() for query-string and link generation in VM mode
  • Add minimal parse_url() for path/query/host components used by routers
  • Compliance PHPT coverage including the acceptance example from the roadmap

Test plan

  • vendor/bin/phpunit (349 tests)
  • test/compliance/cases/stdlib/urlencode.phpt
  • test/compliance/cases/stdlib/parse_url.phpt

JIT support is deferred (VM-only, same pattern as explode()).

Closes #76

Made with Cursor

VM implementations support link generation and basic request URI
parsing for web routing; JIT follows in a follow-up. Closes #76.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit c17ec23 into master May 18, 2026
@PurHur
PurHur deleted the issue-76-url-stdlib branch May 18, 2026 15:05
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.

Stdlib: urlencode, rawurlencode, parse_url for routing

1 participant