Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106722 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56887 invoked from network); 28 Aug 2019 14:46:32 -0000 Received: from unknown (HELO mail-io1-f41.google.com) (209.85.166.41) by pb1.pair.com with SMTP; 28 Aug 2019 14:46:32 -0000 Received: by mail-io1-f41.google.com with SMTP id t3so5289753ioj.12 for ; Wed, 28 Aug 2019 05:18: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; bh=UoAdkLVsLMi0Odw+xtHQqpM2uALHoNpZZM+EjxWYMCE=; b=rewh8Y1Z4hz9xs/ozjQM353rmet1vgsBR48aSyU6uIBWX6tMZeQyMuHEnYzGseoiIk oPaJgKQg6YgWT9L+0puvDgtAvX4Z3YWF8nF85h+7GA1R+F5TTk2GOa1go/L23ZZ4K9ca yncKqzFx0IVZFlORkFijbIHjKRmh1fdpxF0hy+opMz0Hy9Te5Wdby3xIkTYMg9s3k3Rz KHs6DeiQnzPIcuKp4GCbFS8iIyXFifEMozKa7G+KLf9+AF8BIGvHLL7Cw/+cFmXZqCn7 Kei/19SZUDZnqEcDMVPfNbNLD/L+XMV5k3e/esasqg/2PjlKCPMuu13iKOI7ZH2swIPK hOVw== 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; bh=UoAdkLVsLMi0Odw+xtHQqpM2uALHoNpZZM+EjxWYMCE=; b=ctZH9z+165Cde2XOkZWUtdINuZ39M6TbpI+fB+iauZbCHIGGlmQ4tKL9vDEr7vULbj F3heRWvXL8Y84EUrSYRzZ81hl+hrA1YxL7VCRDsFvvvkUWzaEUysI4r/K7ZTUJEXSsR4 N7HJBJyZ38JbkDEYvxt4SBC/xd99CfwIgPUpE8HY4o5xkZiJWosN9cm7ej16AzRjUxkM PlHNYz/kKZBUGeoopjaX0JEEFbj/dtnqT44Ytu34ZUxxOL53NHcMmffrE7qQFtjdSuZp v+aI/vWJBuuN3YvCVFS+C5UerPZMliS2Vll9eXBaj1eM8przFlfcXcjvypjvgnpl/vNL cA9g== X-Gm-Message-State: APjAAAVukRjyOuNNQIqB5ZnlMhS53Oaw+HV0hZo8x8hs8TA230HhVEnQ ysvx6ToRu8UCHkP5hIx6jlPxwWcRtKbQ5y6nC7zx0w== X-Google-Smtp-Source: APXvYqy1OBWz2PQ6mc4nJqJnHRclT3cjGBCyhxljoyMJwC/qUGu3aIshqyr2iAYf2ZCBTY7RDidKe/6MR80NtIPj6Gw= X-Received: by 2002:a02:952d:: with SMTP id y42mr4046934jah.66.1566994719895; Wed, 28 Aug 2019 05:18:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 28 Aug 2019 13:18:28 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000a4f56705912c63bf" Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: rowan.collins@gmail.com (Rowan Tommins) --000000000000a4f56705912c63bf Content-Type: text/plain; charset="UTF-8" On Wed, 28 Aug 2019 at 12:57, Nikita Popov wrote: > However, I feel pretty strongly that converting any of these to > deprecations is not a good idea. While there's certainly different views on > this, I've seen it often enough deprecation warning are considered an even > lower error level than notices (imagine my surprise when PEAR stopped > working completely in PHP 8 because nobody ever saw the hundreds of > suppressed deprecations). We could throw a deprecation in addition, but I > think this will make the development experience really suck for anyone who > is not actively working on a migration right now (imagine seeing lots of > warnings/notices during development twice). > Again, I considered this carefully for undefined constants and discussed it extensively on the RFC and resulting thread. In short, "deprecation notice" doesn't have to mean "E_DEPRECATED". Arguably, "severity" and "type" should be two different dimensions, and E_DEPRECATION_WARNING would be E_DEPRECATION & E_WARNING; but in practice, a Warning containing the text "this is deprecated" achieves the goal just fine. Whatever the mechanism, the point is to make people aware as far in advance as possible, so that they can start addressing the problem before it becomes a blocker to upgrading. As briefly mentioned, third-party libraries are a key case here: if a library raises extra Warnings, I can take the time to submit a patch to that library, wait for the maintainer to accept it, and make sure I can use the latest version; if the library raises extra Errors, I have to delay my upgrade, or run a patched version of the library, until it's fixed. Regards, -- Rowan Tommins [IMSoP] --000000000000a4f56705912c63bf--