Closed
Description
I know that there's been multiple discussions in multiple places about this. But please bear with me.
The following refers to a valid path and file on my Windows 10 machine:
<?php
include './vendor/autoload.php';
use Sabre\Uri;
$basePath = 'file:///C:/Repos/my-path/tests/';
$newPath = 'my-file.json';
var_dump(Uri\resolve($basePath, $newPath));
//Outputs "file://C:/Repos/my-path/tests/my-file.json"
Which fails because it replaced file:/// with file:// and the C: is therefore treated as host:port
Could you please either let me know what I'm doing wrong, or if it is a bug, let me know and I'll organise a PR for you.
Thank you.