On 25 April 2017 16:56:57 BST, Sara Golemon <poll...@php.net> wrote:
>> Maybe it's time to refactor and provide objects with option setters
>> with argument types?
>>
>I do agree there.  I've got a WiP "cURLi" extention in my homedir that
>I've been poking at since ZendCon 2016.  I suppose if we don't put
>type checking in curl_setopt() then that'll just push users who care
>about type safety towards cURLi. :D

Oh, lordy, yes please! The curl API is absolutely horrible, and just crying out 
for a more sane wrapper to be built into the language, rather than everyone 
writing their own messy classes.

Please can we also set some sane defaults (e.g. CURLOPT_RETURNTRANSFER) and a 
small amount of extra logic (e.g. capturing return headers) so that using it 
doesn't require a dozen lines of boilerplate to be useful?

Thanks,

-- 
Rowan Collins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to