Re: [RFC] [Discussion] Add WHATWG compliant URL parsing API
| From: | Tim Düsterhus | Date: | Thu, 17 Apr 2025 21:19:20 +0000 |
| Subject: | Re: [RFC] [Discussion] Add WHATWG compliant URL parsing API | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127144@lists.php.net to get a copy of this message | ||
Hi
On 4/17/25 23:14, Paul M. Jones wrote:
Yes, we absolutely should make this an official policy in the new-ish policies repository (https://github.com/php/policies) to give folks an official resource to reference and hopefully making it easier for RFC authors to make the “correct choice” without someone needing to remember the existing gentleman’s agreement. I've put writing such a policy RFC onto my TODO list to handle when I have the time. Best regards Tim DüsterhusOn 4/17/25 22:47, Paul M. Jones wrote:Ah so -- I was not aware. I retract the comment, and thanks for the correction.As such, the _InvalidUriException_ would better extend from _LogicException_.No. There is a de facto policy of “not using SPL exceptions in new code”. The replacement for LogicException is the Error hierarchy.