Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107083 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36197 invoked from network); 14 Sep 2019 02:06:41 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 14 Sep 2019 02:06:41 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 4E0C42D2039 for ; Fri, 13 Sep 2019 16:42:56 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Fri, 13 Sep 2019 16:42:52 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id 21so30931687otj.11 for ; Fri, 13 Sep 2019 16:42:52 -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=8RK7oPg3qrZrBUIGrwuZoYLtfaHFk/sqmDttuOFlYhk=; b=h64gh1es/Kjf6fkH5m44Y4mkt6rmNwZog64rv1SAUT2ks8hxfvL1BvhjVEFyIzYhMS SLKUpJWRcyvyUE/ytqtQiIb1HfHzUsk48cO6BXstqIbAR2cRzLSYnBdjdiKmyMvFVxkM diHtxmsD4j+cnfjrShz/zNF/aSMl4Wy1/fumd7rY5cojgnIyU8qdZmCUyNd1sxW5QFVJ 775vRAjiVImFx+WzgdYNSzioHlUp8wUpL+pG1Kt//6NSRSlO63Q219k5rn1//CRX8fkt dTVAhBzLzzPPJryfdnlT59I6Ts0cfOYVxCoWC5vJqd1Gajw9LT+Tn8nnzh21E2JbjEcY I9bg== 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=8RK7oPg3qrZrBUIGrwuZoYLtfaHFk/sqmDttuOFlYhk=; b=TZV48P766qI/+LQ+FbL+QO4NnOLqE8talJAMMeR+bs2S654Xj9nmFUjyL3lrX0bbBg 1jvPzqRH8Q+Mnms/B+NkFBwRTrPuez1epGS+YbnA8kU7feOY1SGG6QqBl2NN5w6N8rcw Fyi5NIUFojvCmDOco+uQQrOa1xrlgW0OFCpw2xzmuAPCoe+GdH69d1PWUm5q1GckChG0 1dgVOAKDFXA8wsaX4S9D5gqgF+D1p2WjoBQThJxgT+ocNojdPq9QTlLLVkDcVAl6VZON XaBxqoiNOciFYMkm6SRNVi4pBeBBYf9ypzQWhTvqeQvKjXvNuLJGKSeEldCnoW7HyWsr LV1w== X-Gm-Message-State: APjAAAWhl9iCIuA9VfrnSOnjHRARb4zGndFQgExQ/7aFrWCHRqxR/MrW udkSQvcgtdcYpVj2BtVzoOyYRY+HJ3Vl5DNvv1M= X-Google-Smtp-Source: APXvYqx+S8D105qhpuzqZRMpkyG6/OxoRqWY5nPLtDvrJFfRZPIDtUo+oiH636IekXSt/s258OUje75MyeAHTf6gZUE= X-Received: by 2002:a9d:72db:: with SMTP id d27mr12838234otk.100.1568418171870; Fri, 13 Sep 2019 16:42:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 14 Sep 2019 06:42:40 +0700 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000fe60f7059277cf06" X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: webdevxp.com@gmail.com (Kosit Supanyo) --000000000000fe60f7059277cf06 Content-Type: text/plain; charset="UTF-8" Hi internals This maybe a little bit late but I would like to propose alternative to this RFC. What if we add `strict_errors` declare to make every function/method in files that declared `strict_errors` throw ErrorException on Notice/Warning. Example: File: Test.php wrote: > Hi internals, > > I think it's time to take a look at our existing warnings & notices in the > engine, and think about whether their current classification is still > appropriate. Error conditions like "undefined variable" only generating a > notice is really quite mind-boggling. > > I've prepared an RFC with some suggested classifications, though there's > room for bikeshedding here... > > https://wiki.php.net/rfc/engine_warnings > > Regards, > Nikita > --000000000000fe60f7059277cf06--