phpuri
phpuri copied to clipboard
RFC 1808 compliance and incorrect tests
Hello
It looks like the tests are taken from the RFC, but some of them incorrectly. https://tools.ietf.org/html/rfc1808#section-5.1
For example:
;x should return http://a/b/c/d;x but test.php is looking for result http://a/b/c/;x
This means that phpuri is not resolving some relative URLs correctly. There are also some additional examples in the RFC to test against.
See also pseudocode at https://tools.ietf.org/html/rfc3986#section-5.2.2