# [RFC] [Vote] Followup Improvements for ext/uri

- Thread: https://externals.io/message/130774
- Original archive: https://news-web.php.net/php.internals/130774
- Started by kocsismate90@gmail.com on 2026-05-05T21:20:27+00:00
- Messages: 4
- RFC: Followup Improvements for ext/uri (Accepted) — https://externals.io/rfc/uri_followup.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #130774 — kocsismate90@gmail.com — 2026-05-05T21:20:27+00:00

URL: https://externals.io/message/130774#130774

Hi Internals,

As announced in the discussion thread (https://externals.io/message/129486),
I have just started the vote on the ext/uri followup RFC:
https://wiki.php.net/rfc/uri_followup.

The vote is going to be open until 2026-05-19 22:00:00 (UTC).

Regards,
Máté

---

## #130775 — Andreas Heigl — 2026-05-06T05:04:25+00:00

URL: https://externals.io/message/130774#130775 · In reply to: #130774

Hey Máté


> Hi Internals,
> 
> As announced in the discussion thread (https://externals.io/message/129486),
> I have just started the vote on the ext/uri followup RFC:
> https://wiki.php.net/rfc/uri_followup.
> 
> The vote is going to be open until 2026-05-19 22:00:00 (UTC).
> 
> Regards,
> Máté
> 

One thing I stumbled upon while going through the RFC a last time is the 
expected result of the hosttype detectiopn on mailto-URLs.

I couldn't find anything about the reasoning in the RFC or in the linked 
internals-discussion thread why

$url = new Uri\WhatWg\Url("mailto:john.doe@example.com");
echo $url->getHostType();

will be `null` and not `UriHostType::RegisteredName`

I might have missed something so please either shed some light on that 
or point me to the relevant discussion/documentation.

Thanks!

Cheers

Andreas

-- 
                                                               ,,,
                                                              (o o)
+---------------------------------------------------------ooO-(_)-Ooo-+
| Andreas Heigl                                                       |
| mailto:andreas@heigl.org                  N 50°22'59.5" E 08°23'58" |
| https://andreas.heigl.org                                           |
+---------------------------------------------------------------------+
| https://hei.gl/appointmentwithandreas                               |
+---------------------------------------------------------------------+
| GPG-Key: https://hei.gl/keyandreasheiglorg                          |
+---------------------------------------------------------------------+

---

## #130776 — ignace nyamagana butera — 2026-05-06T05:51:24+00:00

URL: https://externals.io/message/130774#130776 · In reply to: #130775

Hi Andreas,

The mailto URL scheme does not have any host component as per. its
different RFCs
 it is composed of:
-  a scheme component : mailto
- a path component containing a list of email addresses separated by commas
(as per your example)
- and a query component representing the email optional headers info

As such the WHATWG and the RFC3986 interpretation will all return null
because there's simply no host to describe.



> Hey Máté
>
> 
> > […]
> https://externals.io/message/129486),
> > […]
>
> One thing I stumbled upon while going through the RFC a last time is the
> expected result of the hosttype detectiopn on mailto-URLs.
>
> I couldn't find anything about the reasoning in the RFC or in the linked
> internals-discussion thread why
>
> $url = new Uri\WhatWg\Url("mailto:john.doe@example.com");
> echo $url->getHostType();
>
> will be `null` and not `UriHostType::RegisteredName`
>
> I might have missed something so please either shed some light on that
> or point me to the relevant discussion/documentation.
>
> Thanks!
>
> Cheers
>
> Andreas
>
> --
>                                                                ,,,
>                                                               (o o)
> +---------------------------------------------------------ooO-(_)-Ooo-+
> | Andreas Heigl                                                       |
> | mailto:andreas@heigl.org                  N 50°22'59.5" E 08°23'58" |
> | https://andreas.heigl.org                                           |
> +---------------------------------------------------------------------+
> | https://hei.gl/appointmentwithandreas                               |
> +---------------------------------------------------------------------+
> | GPG-Key: https://hei.gl/keyandreasheiglorg                          |
> +---------------------------------------------------------------------+

---

## #130976 — kocsismate90@gmail.com — 2026-05-20T05:18:11+00:00

URL: https://externals.io/message/130774#130976 · In reply to: #130776

Dear Internals,

The voting has been closed. All changes have been accepted with the
following results:

- Add URI building support as outlined in the RFC? 27 Yes, 0 No, 2 Abstain
- Add support for detecting URI type as outlined in the RFC? 18 Yes, 0 No,
2 Abstain
- Add support for host type detection as outlined in the RFC? 17 Yes, 0 No,
1 Abstain
- Add support for percent-encoding as outlined in the RFC? 15 Yes, 0 No, 6
Abstain

Thank you very much for your participation!
Máté
