Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105553 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76153 invoked from network); 2 May 2019 07:11:29 -0000 Received: from unknown (HELO mail-qt1-f170.google.com) (209.85.160.170) by pb1.pair.com with SMTP; 2 May 2019 07:11:29 -0000 Received: by mail-qt1-f170.google.com with SMTP id t1so291540qtc.12 for ; Wed, 01 May 2019 21:14:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ko8XnmSphivLrl2OKBeUSv5IpXOCVo1+PDR/0jVqRZA=; b=LWTO8Z/JYtFPDFjoBFuTmZTj0cQkshHw7F9dW1HP+C+/Dx2l/dWUuEhQfLARjiXeKF ddTAy2iT7Trm2MXW10VYRgdXuFo5PgPXXIZj853QNJbllCiS3dpq929OfxvOR40M4DGH G2KHxwyH//0dTHs8a1VRXI+rcrVKkR0aIx6O7C13HQ467lDuDmskXi8FuuxLnjojtcHj hqtGA51cQ0zoeZqWZaNvAdIQsp+6+zaZI6vLVyQEU0goOdOKxz7UDj1563vhfQXcdcRS UpYLMvm6CmeU5GDW+ITmBBs3h0KtwKm+2L7eW5iNy08suk5rQzcYgW7JZbV94BDwcHI6 C78Q== X-Gm-Message-State: APjAAAXWQHo29oU4DPHwEH9SfF604TN0zYc95GHXbo31RTkBhLWJlmh2 aeiGnjyE9C48Iys/iFx5gHMiiGyK1++pmv0JxvwFgA== X-Google-Smtp-Source: APXvYqyKNtAxLfrUwExbUJw+dAMSLoiaroBuKbSCbutKQsEgwz+cqUmcJm5FdZ3BbCsSc4ET4vKSePmYaIqau8osgWE= X-Received: by 2002:a0c:d2d2:: with SMTP id x18mr1467463qvh.18.1556770442592; Wed, 01 May 2019 21:14:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 1 May 2019 23:13:51 -0500 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000003a5a490587dfdd98" Subject: Re: [PHP-DEV] Remove $age parameter of curl_version() From: pollita@php.net (Sara Golemon) --0000000000003a5a490587dfdd98 Content-Type: text/plain; charset="UTF-8" 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 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 --0000000000003a5a490587dfdd98--