Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104794 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56332 invoked from network); 19 Mar 2019 11:38:05 -0000 Received: from unknown (HELO mail-it1-f182.google.com) (209.85.166.182) by pb1.pair.com with SMTP; 19 Mar 2019 11:38:05 -0000 Received: by mail-it1-f182.google.com with SMTP id 139so824900ita.4 for ; Tue, 19 Mar 2019 01:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ksBoRoGJ4kt13XU0hUr9tuQoAZwWWELLhgjHYNNaZ5Y=; b=tY47UKquWC1BeFpBqVJOdxMJuYnpiVjrIXS2PQ6Gmqq0a9TKcHXC4X6Y9ilPhVyPxH 4DpkB47D5f2iIb1KPP1WKnMmh7g1NWchMEDMzZKbaUSd1RDMlGMNP02QdRxMB3KdtnQM ujl55N6mYgUxFm3mqcivAB3LFiCebbssjPScHAorXTRJoaFVQxkQVoFpyg/zbq4J15Le RhmFwq7AmMMu0p0LIjioPlvrpPPSmagEavNyM0lKpDgAhO/sVAYe5RD7OrG/8JDVs4oX LZBwBlizjami8ARkAhpvjXJS2UeQJC7E489piDZNyyRrW/f7LBf4AG0M0WSk4higxcLk t/oQ== 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=ksBoRoGJ4kt13XU0hUr9tuQoAZwWWELLhgjHYNNaZ5Y=; b=H91Pe4H7gx9MdtodaNOA5GWLK7z5mcbIDFwXq6yUgjU44aMys8ZWhEuf4v7WmZS3OY yUz9vkEOQz2rKErUthOFTM+GQu6bT+kHTFaOZQYm17Gxhnc3cRE2IistMA6eC5I3qpu0 4m/d51+VF+nMaSpJtWybt7+UC5HJ9mOS7bFIek3XwCKFQenhYe+22m07hiHH/QHYqBWy iqL/AZUGsguA8ZSadghPA04BlTChFdX6bjzTxxa4fh4//YTWMyhxRLppTVJCq5kqRGMg 0MNN0wP6A6jJHZTaHD38zzvfv4rsXoHwaNZliy+nGdei4GJF1zh2ERCvWdwFzgXSnpVX pNrA== X-Gm-Message-State: APjAAAVslQ7sOcMNtx+tKXVO4MuvO64MIY0NsrXVS/TwfMOtvadA+1oE rUYPXzzmMwgU6Rgon75TA/xtJZwJ+jf9RmvMXK0= X-Google-Smtp-Source: APXvYqz/SYbAdjXRHNk5RH4sLbsFVQQS7Su6dGlEaU62vQulaDWeoZCdtlOe6QL/BmBNsiVmcgJo7haDl60/McCYfSk= X-Received: by 2002:a24:7542:: with SMTP id y63mr595873itc.70.1552984180214; Tue, 19 Mar 2019 01:29:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 19 Mar 2019 09:29:24 +0100 Message-ID: To: David Zuelke Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000006751ef05846e4ec1" Subject: Re: [PHP-DEV] PHP_VERSION_SERIES_EOL_DATE or similar constants? From: nikita.ppv@gmail.com (Nikita Popov) --0000000000006751ef05846e4ec1 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 18, 2019 at 11:31 PM David Zuelke wrote: > Hi all, > > Would it not be lovely to have, say, two new constants, that contain > the date (ISO, UTC, I guess) of when the running PHP series will be > end-of-maintenance and end-of-life? > > Of course PHP_VERSION_SERIES_EOM_DATE and PHP_VERSION_SERIES_EOL_DATE > are a little verbose, but... > > It would be really useful for e.g. code check systems, tools like > Composer, hosting platforms, to inform the user of an upcoming or past > EOM/EOL date, without having to maintain a list of these dates > separately (by copying from, or scraping, php.net/eol.php). > > Does that sound useful to anyone? It would of course be problematic in > cases where the EOL date is yet to be determined, or changes later (as > it happened with the 5.6 extension), but given that there would still > be newer releases after such a case, where the value of the > constant(s) could then be updated, that'd probably not be so > problematic. > > Trivial? Not? Great? Bad? RFC worthy? > The concept seems useful, but I don't think that including these as constants as part of the PHP build is practical. As you already mentioned, we may decide to extend the lifecycle of a PHP version after it has been released. Even if we don't, the end-of-life dates are more like fuzzy targets than hard deadlines. Depending on release schedule and pending patches, the last release may fall something like +/- one month around the EOL date. To add to that you have the issue of distro support. Many people use PHP binaries from LTS distros, which provide security support beyond PHP's own support lifecycle. I don't think it would be useful to try and get that information into PHP builds. Stas suggestion of a composer package with the necessary data seems much more practical... Nikita --0000000000006751ef05846e4ec1--