Page MenuHomeDevCentral

Refactor URL encode/decode
Needs ReviewPublic

Authored by dereckson on Apr 18 2026, 13:00.
Tags
None
Referenced Files
F55535691: D4077.id11038.diff
Thu, Oct 29, 21:37
F55535672: D4077.id10640.diff
Thu, Oct 29, 21:36
Unknown Object (File)
Sun, Oct 25, 16:10
Unknown Object (File)
Sun, Oct 25, 01:07
Unknown Object (File)
Sun, Oct 25, 01:07
Unknown Object (File)
Sun, Oct 25, 01:06
Unknown Object (File)
Sun, Oct 25, 01:06
Unknown Object (File)
Sun, Oct 25, 01:06
Subscribers

Details

Reviewers
Duranzed

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
Test Failures
Branch
follow-up-for-doc-iii
Build Status
Buildable 6630
Build 6914: arc lint + arc unit

Event Timeline

dereckson created this revision.
Duranzed requested changes to this revision.May 18 2026, 23:15
Duranzed added a subscriber: Duranzed.

Harbormaster reports unit test failures on omnitools/tests/HTTP/URLTest.php, also the exception message changed in beautifyQuery() from "Unexpected encoding value" to "Unexpected value", while normalizeQuery() keeps "Unexpected encoding value".

This revision now requires changes to proceed.May 18 2026, 23:15

Restore full exception message

Move constantes to a backed enum, so we can get autocomplete from IDEs
and exhaustive matching.

_toString() -> (string) cast

Exception can be removed using an PHP 8.1 enum instead of in-class constants.