Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105566 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73908 invoked from network); 2 May 2019 19:58:07 -0000 Received: from unknown (HELO mail-ua1-f45.google.com) (209.85.222.45) by pb1.pair.com with SMTP; 2 May 2019 19:58:07 -0000 Received: by mail-ua1-f45.google.com with SMTP id t15so969530uao.5 for ; Thu, 02 May 2019 10:00:48 -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:reply-to :from:date:message-id:subject:to:cc; bh=NCcTSVZSoVNQGnFza52cA8/fkwgJhuj79sU0zVnfNSY=; b=LjHP2uvlGCaC+I0uDJV07lTC5Yzl/zAxR4jSJB1YCwd7UvQNDqAABjOJwhNwvrmuJj mksRVwglQNsfEdjSIsoDrDORhDvnAAvSht+fml3lPQDmGOqE2SR/x5ZZj0WUFjp0Qy1m 18fcEhwWt6PeIRuETpXquRNBbD5VfWrgjScGKGStpQAx3JQZXt27DBjRihAE6oTDuA+f byDrs3Ost0qm/Vc3lAzDTmrnGbiz+5ErHFFEbVT7xkYRLWVIpCfECUoBDPuttoGv4cNj 7b1EgNj/uH2Iom9i2lTuGJvfNgCOgR5ibqoZNpM1KGjXxEtHAx2m29QbHGb1oDbhEFdj yKqg== X-Gm-Message-State: APjAAAXt2KJiLZOphc2t6T0tdVWf0WL5DmxPD9eyFVyhE4W5ake/xe82 /aHjTM0ti0c8XVAqeLSJTpOTbU2DF51ClO81iGC9f8xY X-Google-Smtp-Source: APXvYqwnKUFXHJnl5VNjaCbMcGhz3/3g7blkinAP1dLbOqETQOpLWSF+ZzO/obJRwC60BUht3sUozEahZA4PDPXhVOc= X-Received: by 2002:ab0:3117:: with SMTP id e23mr2385062ual.102.1556816448183; Thu, 02 May 2019 10:00:48 -0700 (PDT) MIME-Version: 1.0 References: <4813ca95-2617-b892-3e53-8ee175e64187@gmx.de> In-Reply-To: <4813ca95-2617-b892-3e53-8ee175e64187@gmx.de> Reply-To: bishop@php.net Date: Thu, 2 May 2019 13:00:00 -0400 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005ffee20587ea9306" Subject: Re: [PHP-DEV] Remove $age parameter of curl_version() From: bishop@php.net (Bishop Bettini) --0000000000005ffee20587ea9306 Content-Type: text/plain; charset="UTF-8" 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 new \Exception('Please rebuild PHP with curl at least > > version 7.16.1'); > > } > > It seems to me that wouldn't work anyway, since curl_version() only > returns false if curl_version_info() returned NULL, but that won't > happen[2]. > > > [1]: > https://github.com/php/php-src/blob/master/ext/curl/interface.c#L1824 > > [2] > < > https://github.com/curl/curl/blob/d1b5cf830bfe169745721b21245d2217d2c2453e/lib/version.c#L390-L463 > > > Indeed. In that case, I cannot see any value from the $age parameter. It seems to be only an overly-literal functionality translation. I'm in favor of removal. --0000000000005ffee20587ea9306--