Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82605 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97057 invoked from network); 13 Feb 2015 11:39:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2015 11:39:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:41123] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/D6-62214-572EDD45 for ; Fri, 13 Feb 2015 06:39:34 -0500 Received: by mail-wg0-f53.google.com with SMTP id x13so16013560wgg.12 for ; Fri, 13 Feb 2015 03:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=rvNfOBkIGvQJTM+lKI7HB4Vxa7n32ifb7FRWJw9kjY8=; b=x75m2VeL1R3IBvEV7pg6q/0B4Tyi6RyCyagdIabmSrqpDl1KTSxOpSi+zOdffZ9mP0 0w7tswZGSRPr4Jm/OfX9jrXqd2x2lJR8Zgm5f8qam2rmy+csfI9AVIWtV2qB4aNhyOJt jOukrhOgdtIYVAfK1EDLHQxMoTl/G0V85RdDMHvbUILtRjajbLkKFreKtJLsFojz5gVt TqYK8GPOBI8vRCWj3uIJQvP1VovCaukBez1VwqHjjeETzmKzOK+sQooQdmfcjTjeizaz JAeptNZqyAGiTXRmXvtGDzRi2MWwJOiDnpL7epWal0K2MUwE41s+pKbmK2zQYOCnEA0Z uK2w== X-Received: by 10.180.212.113 with SMTP id nj17mr15670850wic.54.1423827571269; Fri, 13 Feb 2015 03:39:31 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id er13sm9750424wjc.11.2015.02.13.03.39.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Feb 2015 03:39:30 -0800 (PST) Message-ID: <54DDE240.80507@gmail.com> Date: Fri, 13 Feb 2015 11:38:40 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: PHP internals list References: <006b01d046d4$0674e6c0$135eb440$@tekwire.net> <54DCDA71.8070201@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Remove $this from incompatible context From: rowan.collins@gmail.com (Rowan Collins) Kris Craig wrote on 12/02/2015 21:45: > Since it's very common for environments to display E_WARNING but not > E_NOTICE, some devs-- particularly those who are less experienced in > PHP-- can end up wasting a lot of time trying to chase down the > behavior because they're not seeing any errors. If people have turned off E_NOTICE, there is presumably something in that level that they don't want to see; giving them that choice is the whole point of having multiple reporting levels in the first place. Without a clear definition of what should be in each level, there's a risk of inflation setting in, with advocates of each message saying why people should see it even if they have E_NOTICE turned off. The alternative, which I've tried to picture before, is a more customisable system based on types of message rather than severity - so that a user who has a lot of $foo[$new_key][$new_sub_key] = $value in their code can suppress E_ACCESSING_NONEXISTENT_ARRAY_KEY, and a user who has a lot of $foo[unquote_key] can suppress E_UNDECLARED_CONSTANT_USED_AS_STRING (obviously with better names than that!). That way important messages which you definitely want to fix don't get drowned in the noise of things which you know you should get around to fixing one day but are working as designed right now. Regards, -- Rowan Collins [IMSoP]