polyfill
polyfill copied to clipboard
Introduce PHP 8.5 polyfill
⚠️ This is a first, naive draft of a new always-available ext-uri introduced in PHP 8.5 (or 9.0, whichever comes first). It isn't complete yet.
Follow-up of https://github.com/symfony/symfony/pull/57192#issuecomment-2340133849
I used TDD on this one, using https://github.com/php/php-src/pull/14461 test cases. There's a lot to do still. I'm publishing this PR if one wants to track progress on this, but also to get potential feedback during development. Keep in mind that "everything" is subject to change if you take a look at it 😄
RFC: https://wiki.php.net/rfc/url_parsing_api Implementation: https://github.com/php/php-src/pull/14461
Thank you everyone for reviewing this first draft! I applied the requested changes. I'll continue the work soon.
see https://github.com/bakame-php/aide-uri for a complete userland implementation of the RFC.
/cc @nyamsprod
Let me close here, thanks for proposing. This topic is solved either by using bakame-php/aide-uri directly or by porting it here. I'm looking forward to @nyamsprod opinion of the topic.