On Wed, May 1, 2019 at 12:18 PM Christoph M. Becker <cmbecke...@gmx.de> wrote:
> > curl_version()[1] (of ext/curl) makes curl_version_info()[2] (of > libcurl) available to PHP userland. The latter requires to pass an age > argument which usually is CURLVERSION_NOW, so that the information > returned by the runtime matches the declarations used during compile > time. For C programs it is simply necessary to pass this information, > and it might make sense to pass something else than CURLVERSION_NOW, but > the PHP wrapper assumes that the return value of curl_version_info() > matches the compile time declarations anyway, so passing anything else > might give bad results. > > Wow... yeah. That's an example of being far too idiomatic with the bindings. I didn't even know we accepted that arg. Kill it with fire. -Sara