thephpleague / uri-schemes

Collection of URI Immutable Value Objects
https://uri.thephpleague.com/schemes/
MIT License
216 stars 7 forks source link

The library does not respect RFC3986 for non-leading digits inside scheme #13

Closed mudhoney closed 5 years ago

mudhoney commented 5 years ago

Issue summary

The libaray does not fully comply with the RFC3986. As mentioned in the section 3.1.

followed by any combination of letters, digits

System informations

Information Description
League\Uri\Schemes version 1.2.0
PHP/HHVM version 7.2.9
OS Platform all

Standalone code, or other way to reproduce the problem

echo Uri::createFromString('s3://somebucket.com/somefile.txt');

Expected result

s3://somebucket.com/somefile.txt

Actual result

 Uncaught League\Uri\UriException: The submitted scheme `s3` is invalid in /tmp/uri-schemes/src/AbstractUri.php:276