Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104798 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94778 invoked from network); 19 Mar 2019 14:08:42 -0000 Received: from unknown (HELO mail-io1-f65.google.com) (209.85.166.65) by pb1.pair.com with SMTP; 19 Mar 2019 14:08:42 -0000 Received: by mail-io1-f65.google.com with SMTP id p17so17322707iol.7 for ; Tue, 19 Mar 2019 04:00:19 -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=/ScK+EnqB2B5dtZbdrJU7DaGK/grHmarNIau+5TxFD8=; b=oJRxVoafQIjebTvGvKEySily8iznrljeyskpxjTQ4s+XpMNBhJcd1yl3DYmtJZjtBR fEzrBo4RmiYtQXrDvE26FRfCDPBX7ty7QVshVRNxxz7ktAmA1qtucP5aX52Ba2fI4XIN nKzrDprOxvC8XZm/7R87epw6dbmJyZHGtsAm6XaOxi2qoh1i1RW53DINAZs3h+mq70ms 9SG4BC33RTQ1nX1iccOow7/DcP9SkOUJnycL60scQQeP8MObifO4CCdMmgkm8isuS4V5 68TSFIGdgEST1BnBr/RUfwz4U4hoY7r4lezXBToZDnw1F9b3ughgBW3F3j4eKCFqRX5/ 146w== 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=/ScK+EnqB2B5dtZbdrJU7DaGK/grHmarNIau+5TxFD8=; b=l3gy9XnaIYK3E3dBrP3lnb+oL7TcJTS91lgOqS0G0xw5OLZZUx72JFL/D0WYGTJMzk fNlg82cMO+bpt7hNRktCfixMLv+ClmjeJmYK7xyrPe9BTWa5i32thcnw2M698ClrnRUz R+JZZLSzt9AC11CAFRCTJJLQkp8zugw5xelrFZh65QWDqI7T9GCisM5da4K5OsD5ZXqS YXdRwJlz9ngigmJ5SSnkHJhdcodgx5Ndcx9j29xUP7v0BomfCybx5OlfwJ+/vWJTkZAI Agaju9CqSqzDhDr/SMZUyUIg/MjDuqX7cXM3lT1DkSIMGxDKj1YvmKno31wKJUf8GyAO mFVA== X-Gm-Message-State: APjAAAUMSlFuRKQa17doRr7WnnR9C/v7U6a2H4EsS3zCXEOLd1eOwN69 Wr6THOVciBf4VNWCTXcNeoL6XPgu8A99KNqn9nQ= X-Google-Smtp-Source: APXvYqwFDnYdVKCDmbJcGYuXmaEhcECBi4E2rva2f2HytDjRhByN9aq/H/xiA70fvQLSH5+VJk/+OG4zkusk0OmrQM0= X-Received: by 2002:a6b:e706:: with SMTP id b6mr1044253ioh.78.1552993219236; Tue, 19 Mar 2019 04:00:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 19 Mar 2019 12:00:07 +0100 Message-ID: To: Pierre Joye Cc: Nikita Popov , David Zuelke , PHP internals Content-Type: multipart/alternative; boundary="0000000000002bd9b10584706907" Subject: Re: [PHP-DEV] PHP_VERSION_SERIES_EOL_DATE or similar constants? From: ocramius@gmail.com (Marco Pivetta) --0000000000002bd9b10584706907 Content-Type: text/plain; charset="UTF-8" On Tue, Mar 19, 2019 at 11:59 AM Pierre Joye wrote: > 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. :) > Stop giving me ideas! Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --0000000000002bd9b10584706907--