On Mon, Apr 24, 2017 at 9:00 PM, Michał Brzuchalski
<michal.brzuchal...@gmail.com> wrote:
> I agree with Stanislav. IMHO argument types are valueable when are
> reflective by reflection and curl_setopt has no valuable info by reflection
> and will never be. Curl implementation also uses resources cURL handle is
> used.
>
Literally zero internal functions have argument type reflection
(beyond class and array types).  curl_setopt() is not and would not be
any different in this regard.

https://3v4l.org/2BtPW

> 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

-Sara

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

Reply via email to