Re: [RFC] OOP API for cURL extension
| From: | Arvids Godjuks | Date: | Thu, 15 Feb 2024 07:26:37 +0000 |
| Subject: | Re: [RFC] OOP API for cURL extension | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122378@lists.php.net to get a copy of this message | ||
On Thu, 15 Feb 2024 at 03:53, Sara Golemon <pollita@php.net> wrote:
> Good afternoon folks, I'd like to open discussion on adding OOP APIs to
> the cURL extension.
> https://wiki.php.net/rfc/curl-oop
>
> This has been a long standing bug-bear of mine, and I think its time has
> come.
>
> try {
> (new \CurlHandle)->setOpt(YOUR_VOTE, true)->exec();
> } catch (\CurlHandleException $ex) {
> assert(false); // Why not?!
> }
>
> -Sara
>
Good morning from this side of the globe Sara! :)
"Hell... It's about damn time" (c) Tychus, StarCraft 2.
The proposed API looks good to me and covers it all as far as I can tell.
--
Arvīds Godjuks
+371 26 851 664
arvids.godjuks@gmail.com
Telegram: @psihius https://t.me/psihius