Re: [RFC] [Discussion] Add WHATWG compliant URL parsing API

From: Date: Sat, 03 May 2025 21:07:43 +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 17 18 19  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Ignace,

Why can't the Url::resolve method also expose the $errors parameter like
> the constructor and the parse static method ? As far as I understand it
> nothing prevents the API from exposing the errors during URI resolution
> which is a proxy method for the constructor call just like the parse
> named constructor ?


Sure, that's also a good catch! It was an omission until now, and I've
recently fixed this: so now Uri\WhatWg\Url::resolve() has a 2nd parameter
($softErrors).

Regards,
Máté


Thread (152 messages)

« previous php.internals (#127275) next »