Re: [PHP-DEV] Remove $age parameter of curl_version()

2019-05-02 Thread Bishop Bettini
On Thu, May 2, 2019 at 3:58 AM Christoph M. Becker wrote: > On 01.05.2019 at 19:40, Bishop Bettini wrote: > > > On Wed, May 1, 2019 at 1:18 PM Christoph M. Becker > > >> Thoughts? Do I overlook something important? > > > > Well, what about: > > > > if (false === curl_version(3)) { > > throw

Re: [PHP-DEV] Remove $age parameter of curl_version()

2019-05-02 Thread Christoph M. Becker
On 01.05.2019 at 19:40, Bishop Bettini wrote: > On Wed, May 1, 2019 at 1:18 PM Christoph M. Becker > 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

Re: [PHP-DEV] Remove $age parameter of curl_version()

2019-05-01 Thread Sara Golemon
On Wed, May 1, 2019 at 12:18 PM Christoph M. Becker 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

Re: [PHP-DEV] Remove $age parameter of curl_version()

2019-05-01 Thread Nikita Popov
On Wed, May 1, 2019 at 7:19 PM Christoph M. Becker wrote: > Hi, > > 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 run

Re: [PHP-DEV] Remove $age parameter of curl_version()

2019-05-01 Thread Bishop Bettini
On Wed, May 1, 2019 at 1:18 PM Christoph M. Becker 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 m

[PHP-DEV] Remove $age parameter of curl_version()

2019-05-01 Thread Christoph M. Becker
Hi, 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