Re: Remove $age parameter of curl_version()
| From: | Sara Golemon | Date: | Thu, 02 May 2019 04:13:51 +0000 |
| Subject: | Re: Remove $age parameter of curl_version() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105553@lists.php.net to get a copy of this message | ||
On Wed, May 1, 2019 at 12:18 PM Christoph M. Becker <cmbecker69@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