Skip to content

ext-uri removing the host #20431

@nyamsprod

Description

@nyamsprod

Description

The following code:

<?php
echo Uri\Rfc3986\Uri::parse("https://example.com")->withHost(null)->toRawString(), PHP_EOL;
echo Uri\Rfc3986\Uri::parse("https://example.com/")->withHost(null)->toRawString(), PHP_EOL;

Resulted in this output:

http:/
http:/

But I expected this output instead:

http:
http:/

PHP Version

not relevant

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions