Re: [RFC] Enable strict_types checking for curl_setopt()

From: Date: Fri, 28 Apr 2017 23:30:06 +0000
Subject: Re: [RFC] Enable strict_types checking for curl_setopt()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-98904@lists.php.net to get a copy of this message
On Fri, Apr 28, 2017 at 6:05 PM, Rowan Collins <rowan.collins@gmail.com> wrote: >>I reject the idea of making a worse API for the sake of an artificial >>purity standard which has long since been violated elsewhere. > > Personally, I think if we were designing from scratch, having a > setHeaders method which took an array (and an associative > one at that) would seem a better API than a weird polymorphic > function with a manual page a mile long. > We can agree on this, and others in this thread have said as much as well. I've also mentioned that I've been poking at a new curl binding since last November. Funnily enough, it's a mix of a monolithic/polymorphic setOpt() method and where appropriate, setSomeSpecificThing() methods. When I get it to a stable point I'll toss it on github. -Sara

« previous php.internals (#98904) next »