Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106724 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68199 invoked from network); 28 Aug 2019 15:57:47 -0000 Received: from unknown (HELO mail-io1-f43.google.com) (209.85.166.43) by pb1.pair.com with SMTP; 28 Aug 2019 15:57:47 -0000 Received: by mail-io1-f43.google.com with SMTP id e20so5784862iob.9 for ; Wed, 28 Aug 2019 06:29:57 -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=r5jUCA7o5BMWxIOlr6MzieRbhqLs9ddZ85jaQJPASYQ=; b=rAnEOCkP2aElXYnY+GTfGAzZefvu7K22dJ0ySFiqVMLj/PZaBBufWnde0ucLn3p9oN MK16w4W03YYRhWEGXC8eFa9lKEVdj2I27ird8VKIg6btzak3qDcADIDl/MtxgNEalZLq hoKDzjdqRbtrKYLvO3PGlDfRvZf3hPAQim6/KgLz4TG8y1oiLuKw5mU17fRcU7uPHZFF rcnuYe0ZMXPM2UqNjLQ1GoPrxm319WRrvD8ySzS4zDSUSPqzRR5moVzuYgf5EuzH3iR5 ns3KjFY5gxQHnPBl24IDPzH4HmTG0BjbhpWRlIL/6fla8v1m22ImAiwMgwEr0MgMRq4P XXSg== 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=r5jUCA7o5BMWxIOlr6MzieRbhqLs9ddZ85jaQJPASYQ=; b=KK+YXo+BoNfFiImCmuubZeb0SiKFxO4SkdtGQbhAzI7kQvN3Ju6mm89EqoeY0U/L9I ih9VV12fah/+sjbOGyjQAOyqwXA7085IOHhGg1lcB7Smnx3TTzpUH/mHSIeM2vGQ/dX/ NuxIYiKc8BUOqLnDTUvvMdqSAmQMcbs+H2OH5OYfk+so/H2KTX5t0wJe/nrYHoFDTW5r FTidNaOltik+igBmgIYbETY4tMjwiwzYSULFPUN1p885WF19Wd9DsBlgZD1pani7rWBN vB8oyoYIG4pxayBDNxY0GkQBr7sCNmcFBdFQ1wUkf3xEmfGLvQKlQXoXzXDyKkDSy5jR bOVw== X-Gm-Message-State: APjAAAVt+Bhn36rN3tZH0Hx2sBofCm1MNuHodruTNqtPUyDc5o8o5EXE P/BdarNIS9gDhy7zqJLb/QBe9XCSPjETUQW+IOw= X-Google-Smtp-Source: APXvYqwfjzau0gNVJQC9lYA4914p7IqRcio5YMlZTHgzHQ+azzm4ZJ+4IYGLQdiNxBY3gk7cz6sp5+Ilh4khDBAKXAM= X-Received: by 2002:a02:8805:: with SMTP id r5mr4236793jai.102.1566998996511; Wed, 28 Aug 2019 06:29:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 28 Aug 2019 15:29:30 +0200 Message-ID: To: Nikita Popov Cc: Zeev Suraski , PHP internals Content-Type: multipart/alternative; boundary="0000000000008cf0db05912d62a4" Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: kjarli@gmail.com (Lynn) --0000000000008cf0db05912d62a4 Content-Type: text/plain; charset="UTF-8" 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). > You got a very valid point here. As long as there is a clear migration path, albeit with user-land tools, I'll take it. > I think it would be better to register an error handler that matches the > cases that will throw and can then log those. I'd be happy to provide an > implementation if you think this would be useful for your use-case. Also > has the nice advantage that you can start using it right now and don't have > to wait until you upgrade to a release that has deprecations. > It would be great to have a package that reports all these cases, though we could try to craft something ourselves if this RFC is approved. Perhaps frameworks providing error handlers can add specific logging for these scenarios as well, saves you from putting more effort in this than required. Regards, Lynn van der Berg --0000000000008cf0db05912d62a4--