-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed as duplicate of#260
Labels
Description
Description
The following code:
<?php
use Uri\Rfc3986\Uri;
$a = new Uri('http://www.example.com/');
$b = new Uri('http://www.example.com');
Resulted in this output:
$a->toString(); // returns 'http://www.example.com/'
$b->toString(); // returns 'http://www.example.com'
But I expected this output instead:
$a->toString(); // returns 'http://www.example.com/'
$b->toString(); // returns 'http://www.example.com/'
Following the RFC3986 specification
PHP Version
PHP 8.5.0beta1 (cli) (built: Aug 18 2025 13:04:01) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.5.0beta1, Copyright (c), by Zend Technologies
Operating System
MacOS