polyfill icon indicating copy to clipboard operation
polyfill copied to clipboard

Introduce PHP 8.5 polyfill

Open alexandre-daubois opened this issue 1 year ago • 2 comments
trafficstars

⚠️ 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

alexandre-daubois avatar Sep 16 '24 07:09 alexandre-daubois

Thank you everyone for reviewing this first draft! I applied the requested changes. I'll continue the work soon.

alexandre-daubois avatar Sep 17 '24 14:09 alexandre-daubois

see https://github.com/bakame-php/aide-uri for a complete userland implementation of the RFC.

/cc @nyamsprod

TimWolla avatar May 06 '25 09:05 TimWolla

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.

nicolas-grekas avatar Jun 24 '25 08:06 nicolas-grekas