You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the The RFC
The following function and Enum should be present in PHP8.6
namespaceUri\Rfc3986 {
enum UriPercentEncodingMode
{
case UserInfo;
case RegisteredNameHost;
case Path;
case PathSegment;
case Query;
case FormQuery;
case Fragment;
case AllReservedCharacters;
case AllButUnreservedCharacters;
}
functionuri_percent_encode(string$input, \Uri\Rfc3986\UriPercentEncodingMode$mode): string {}
}
But when I check the source code I fail to see the Enum, the function or any tests for them ?
Yes, unfortunately, my initial PR to the upstream uriparser library struck in review phase (uriparser/uriparser#337), so this feature was not implemented after all :( That's why I had to keep the RFC in a pending phase... But I'll definitely want to address this shortcoming in the next minor PHP version.
Thanks for the response I will keep my polyfill present in the package but I will remove the PHP version constraint for now else my tests are failing on PHP8.6+ .
I will re-add the constraint once your implementation lands in the source code
Activity
kocsismate commentedon Nov 28, 2026
Hi @nyamsprod ,
Yes, unfortunately, my initial PR to the upstream uriparser library struck in review phase (uriparser/uriparser#337), so this feature was not implemented after all :( That's why I had to keep the RFC in a pending phase... But I'll definitely want to address this shortcoming in the next minor PHP version.
nyamsprod commentedon Nov 28, 2026
Thanks for the response I will keep my polyfill present in the package but I will remove the PHP version constraint for now else my tests are failing on PHP8.6+ .
I will re-add the constraint once your implementation lands in the source code