Re: Discussion about new Curl URL API and ext/curl improvements
| From: | Craig Francis | Date: | Mon, 20 Jun 2022 15:32:18 +0000 |
| Subject: | Re: Discussion about new Curl URL API and ext/curl improvements | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118017@lists.php.net to get a copy of this message | ||
On 20 Jun 2022, at 14:44, Christoph M. Becker <cmbecker69@gmx.de> wrote:
> On 20.06.2022 at 15:13, Pierrick Charron wrote:
>> about the new Curl URL API, I think it's still time to finalize the discussions and
>> include it in the 8.2 release as it allows us to solve some potential security issues.
>
> Given that designing a new OO API obviously isn't uncontroversial, and that there are only
> four weeks left till feature freeze, it might be best to go with a simple procedural API for PHP 8.2
> only.
+1... while I'd also like an OO API, it will be a much bigger project, and would need a fair
amount of thought/discussion.
As to the URL API, it solves the problem of developers making their own URL parsers that often work
differently to the cURL parser (those differences can cause security issues); and considering
it's possible for cURL 7.62.0 (Oct 2018) to do that parsing, and it's a fairly simple API,
that would work in a similar way to the existing cURL functionality in PHP, it would be good for PHP
developers to use that in PHP 8.2.
Craig