[RFC] OOP API for cURL extension
| From: | Sara Golemon | Date: | Wed, 14 Feb 2024 18:47:54 +0000 |
| Subject: | [RFC] OOP API for cURL extension | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-122371@lists.php.net to get a copy of this message | ||
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