Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104797 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93159 invoked from network); 19 Mar 2019 14:07:32 -0000 Received: from unknown (HELO mail-wr1-f66.google.com) (209.85.221.66) by pb1.pair.com with SMTP; 19 Mar 2019 14:07:32 -0000 Received: by mail-wr1-f66.google.com with SMTP id w1so14567605wrp.2 for ; Tue, 19 Mar 2019 03:59:09 -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=vb+QYPnYkbnDzUGrjEe9uLso3QtEclRgm2ge4o19DJk=; b=LwfxkfeVrRSjCBEXOPHX3JfBnvZ1v8qs88bvQek4xIGnca0DlHZrqbX8OQdIOjo31E xwIlm4NJEH5hW7XXE6wrqPtfeNrFFpeV73DOi6frmGYBbgMGEPJNfhhLbfXzMweSbTjB pUvCJfbfVwFy/ziSphyIHEUrYK4DR1emAtcTbv2dURcv3nnCg9Kyx0D18Ufkz9a7Tfml N6NjJPiLUODIvrdl68AiQHInnnzCsyZeMo8cwnfhDXBkJJRQyqEusbobu81Mal6r1C1V L0hR3x8ZcRpAFHnUyou5wIg0jjkuBzi9A4h4PfNRqa8jsGD8C+nLdXNv7JH5Joy0s1+W WZCg== 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=vb+QYPnYkbnDzUGrjEe9uLso3QtEclRgm2ge4o19DJk=; b=V25TlKVh0diHuxQ+1wUTfaVRbT0YiktdJwa8frf23jfrpM2kAEY3KJa/HHr2Ulx9bz HBfa9pTiozjiG90JNcAzAqKQkMX6LHEb2JaSvL2DUrMFn8OiS3Is9Zg50GTtoI8PWWEL 0lSCmM5OyESx5XT0zfAruu7AqRLrutXh0CM4lcK5uyGA5yLTxvWut0EGeEVOGnDSEbKc pheAZOfWI2ZJJU6hn/Zcn8O9qPMBAlXhDY41LpHtJWglcc/be+uvz0T7BAP4tOCgX8jW A8taWWM6wLeypt/YxjRioTZFICem7sJV/xBGUWT70ZuFgVJfW61QoCfcH7ylfmTzxymS ABoQ== X-Gm-Message-State: APjAAAXUbJzXK/IJwceV3PcbVZ/gLkToFj4O+SHU+5EifAADL7SUV54B w1n2xYZlFEUijdDIOybLr4IFpQBS8MJfBGcM6Yo= X-Google-Smtp-Source: APXvYqycweTlItF5y+pcKHcYhMCioLgngH7ZYjbNjYRbwNbhvj9WG+oKT+v0LwF8POAT6I64Ppe1FQuggiWztdrlIWM= X-Received: by 2002:a5d:6207:: with SMTP id y7mr15857080wru.60.1552993148995; Tue, 19 Mar 2019 03:59:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 19 Mar 2019 17:58:56 +0700 Message-ID: To: Nikita Popov Cc: David Zuelke , PHP internals Content-Type: multipart/alternative; boundary="000000000000fc0c690584706461" Subject: Re: [PHP-DEV] PHP_VERSION_SERIES_EOL_DATE or similar constants? From: pierre.php@gmail.com (Pierre Joye) --000000000000fc0c690584706461 Content-Type: text/plain; charset="UTF-8" On Tue, Mar 19, 2019, 3:29 PM Nikita Popov wrote: > 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... > I can already see bugs report from packages refusing to work if the date is already past. :) > Nikita > --000000000000fc0c690584706461--