Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105548 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38472 invoked from network); 1 May 2019 20:16:14 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.17.20) by pb1.pair.com with SMTP; 1 May 2019 20:16:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1556731120; bh=0IoN67cuCRCvFVv9NY2x9YglyBsDKCPnRuCzUDR6uu4=; h=X-UI-Sender-Class:To:From:Subject:Date; b=DNmHZ30rvub3s32cBBk2xAE8Q7w/6486yk37q+lJS5dLohSwVklyP/QBGWBvTx0c/ LTtLKAHN7slHX8Ow+ed0F80LbDkzWJHLRFo1hAk72ubgY2sIH3Y/huSEt9DvRFPW1u G2cFlESXbfcPRNLjCTiu+i3Hkt56tsGeeLYG0EpI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.144] ([79.222.45.225]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MNuwp-1hOLz11dQx-007RdN for ; Wed, 01 May 2019 19:18:40 +0200 To: PHP internals Message-ID: Date: Wed, 1 May 2019 19:18:41 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:hNDC363CScK33fkxUW6cTmjEYWSOhaYtMsf6F9vgnOhTh2dmFVi IzFChwE+bhw9X26iwEh53eDl4o/MD5irPiddTsVfKJhbHTV6y0XhnGHD7XlUijxiwfvXuOk lSt9jaKt64+BF1wfJv8O6ZxGMzNiqfCbGZCMajq593T2raKet5Fu6wlSiRJSTl0HoHx3oLN 6pvz7S3jVXDS88Hj0PoyA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:RG1otglIaJM=:xeVtq0sN/SceOFGVzpCmuM X6f4EGm7boEPmMa1B7bICB5xFqrXUYMV3V2KPvpzqYZYzKBv7Duz1Rcq0sHsXjNSQKlP6W4M4 nMtDGnFT03bkh53oU/LvTSwN9Wt5QTj77OYZccz6J48pVxWn7xEu65m8DawCtQ/MavZvKLK48 yAc/Rk4nf1SXq4BPDbPnLIvLlsesBI0R1vka+zSRdaBuIar3jbB6hLfQzu7bCAFMoZiT979D9 qx8SXDkSy6oHx63CNFoDni8iHD1x0dV8aKrxTDbkof0SMeI+jdeVq+ooIRolhIbfIFPl6Xh09 R5r4QFCUFv0kXNUbXoMIV2d07bSRPFoUGlGZG6XgURhwLYWNuBFXHzTxCOusle3C0TrHUJPQN hhCcD0uwpTCHGBBwltX0MLcJPP2PkAeSe0AerjX+EqLHkNTJ6a6kOw0y6uURzVEP8uRwKLZmU zbmGH+Y5yDWoyWkpRYoVDx3D/PDIIx5bHEE5KLrHynoFEdrWUBaGB9MPcj/Lbbe8/8/y7NHaR 5qwpPX3TmJS6EIYR6enJxEzYAfugA11G+H4honQQiGTI3ros+bjEiSsNN7zXZ7NEFariDF+QW M35tVMlxq+ChoTsltKA6l+YsSpq9R+YdSkto0WgPskxe3uiooR8gCFeHpk6rsgWqbLEYsazRy X6IyNM1Sjw8/aquT9AP7C3nWg4GKV0N+AKz+DBePY88uVUJO9Esz6DPXaAhlbRtYBQnRSWCwP olYm99M4iTINAn+H6ERAvxtRZnnSS0LHjS7BZji/w64ld04V2NUqVDk0V66I/KvzuNX1nQUsW 1UYGr3ynumNNluELBtN1DgC3mzIl0bAHxTxyxaMJiCBirB67JhZnEwjT/6p0FaUhMyr7hJUC+ fomyNf3fYkjSgZWldo8PVdX5lbaYV7izfr2aDMPkiPvYWYtsV14sBMynlf9FBWevqz6hPZhoy EyKQJQ03LGw== Subject: Remove $age parameter of curl_version() From: cmbecker69@gmx.de ("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 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. Therefore I suggest to remove this parameter in the long run altogether. For PHP 7.4 I suggest to deprecate using the parameter, and also to ignore anything that is not CURLVERSION_NOW, and to raise a warning in this case. I.e. something like the following behavior: // okay curl_version(); // E_DEPRECATED: passing an argument is deprecated curl_version(CURLVERSION_NOW); // E_WARNING: argument ignored curl_version($not_curlversion_now); Thoughts? Do I overlook something important? [1] [2] =2D- Christoph M. Becker