Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83669 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96783 invoked from network); 24 Feb 2015 15:02:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 15:02:51 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:34659] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/33-10521-9929CE45 for ; Tue, 24 Feb 2015 10:02:51 -0500 Received: by mail-wi0-f169.google.com with SMTP id em10so27783368wid.0 for ; Tue, 24 Feb 2015 07:02:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=f50X1bx2QnnowOeL5pPPU7RcE+sufGi5o+UuBfNeQGE=; b=UmJYsLlH5NL+DO3cj0PB7ytarc0awos1xb8OYzMX/508Pk4UiE17me6TOV2h6g8fqK m1htpMDLJ9ROiZS2m3+ZGPLxPyhCv0i5yYnQEphJ7DEIDorLddaiEC/QAKEfNu1P/kdR jChBVZ98S0oaG9YNt58ArY2MuvfucluayVy2oQ+u62uPDg8c5qvpoWU3ogb0+X04S5Dm nr8qhqVEp6IyOFAX3ZRo1xZYJwtOGs2YFQ1vJCYb2SJv5vw742cf1pqLuPntV6K27pXB fyc6XUlKbn+cOF4xa5TElpD1QDvWbjtp/r3yIQRc2UbHkPLV6l7Ovq8HSoG9X1efUiAm K53Q== MIME-Version: 1.0 X-Received: by 10.180.81.7 with SMTP id v7mr4767479wix.27.1424790167180; Tue, 24 Feb 2015 07:02:47 -0800 (PST) Received: by 10.27.10.168 with HTTP; Tue, 24 Feb 2015 07:02:47 -0800 (PST) In-Reply-To: <54EC262D.9050205@gmail.com> References: <54EC262D.9050205@gmail.com> Date: Tue, 24 Feb 2015 16:02:47 +0100 Message-ID: To: Stanislav Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=f46d0421a637cb5b60050fd6cf57 Subject: Re: [PHP-DEV] Reclassify E_STRICT notices From: nikita.ppv@gmail.com (Nikita Popov) --f46d0421a637cb5b60050fd6cf57 Content-Type: text/plain; charset=UTF-8 On Tue, Feb 24, 2015 at 8:20 AM, Stanislav Malyshev wrote: > Hi! > > > > > I would like to propose reclassifying our few existing E_STRICT notices > and > > removing this error category: > > > > https://wiki.php.net/rfc/reclassify_e_strict > > Could you add some more explanation about why it is a good thing? I.e., > E_STRICT has pretty clear place and hurts no one, why remove it? What we > are trying to accomplish by that? I'm just not seeing how it would be > better without E_STRICT. > The motivation behind this is pretty ad-hoc. I have noticed that we have a number of E_STRICT notices that seem pretty bogus and should be dropped. I've also noticed that we throw E_STRICT for some imho relatively severe errors (like signature mismatch, which fatals in other circumstances), in which case the level should be increased. So in the end it's less about "lets drop E_STRICT" and more about "after reclassifying some E_STRICT notices, there isn't really anything left in this category". In addition to that, I don't like the semantics that "strict standards" notices convey. Many (professional) PHP developers target notice-free code (which does not throw any kind of warnings/notices that are not explicitly suppressed) and from this perspective "strict standards" notices are a weird concept. Either the code is okay to write or it isn't, don't throw a notice to tell me to "consider using an accessor" (because that informational notice will present use in notice-free code). So this RFC drops the portion of E_STRICT that appears bogus/informational to me (the three mentioned in the RFC and the by-ref cases discussed in a separate thread) and moves the rest to proper notices / warnings / deprecations. Nikita --f46d0421a637cb5b60050fd6cf57--