Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10192 invoked from network); 12 Feb 2015 17:01:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2015 17:01:02 -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.178 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.178 mail-we0-f178.google.com Received: from [74.125.82.178] ([74.125.82.178:37749] helo=mail-we0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/50-08423-D4CDCD45 for ; Thu, 12 Feb 2015 12:01:01 -0500 Received: by mail-we0-f178.google.com with SMTP id w62so11335148wes.9 for ; Thu, 12 Feb 2015 09:00:58 -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=z0F0cf/iR1+PACpsR9LIy63ZJhnQnu6IfFzlv1OBkgk=; b=iykeauECZylv9oBxuS7bhgMA+1FZFgUXSzQ7y9VvFfhU5t2XTuGDVU5y2kqGgR/rws 5nnZvr9q8wVDw71/GWxPVSkOPbi39AQuBeIq9YTo9ak2G9jAKSRDX+bYtgZtczC60Puo UnuC1VIeDSNA1kwrFRBaEB8zUPvFjQhDQwqpSe7DOdQfkwBzhg8lPbULq1Pft5wzFRfy k5i7MIO7/NBYw8Q9UVY03tTEaJ9tQM5pmuTdGLU7wrcOY65TUwPK3UhQxvjSswxzB8hD e3Bj19Zk8YvsnVGNDjsyDT3PDhlewlYKgrgceDOU5WTWHuIhXqnKCZTgkB2qhecGYINf LChA== X-Received: by 10.194.122.196 with SMTP id lu4mr9773231wjb.154.1423760030873; Thu, 12 Feb 2015 08:53:50 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id pl1sm3260108wic.23.2015.02.12.08.53.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 08:53:50 -0800 (PST) Message-ID: <54DCDA71.8070201@gmail.com> Date: Thu, 12 Feb 2015 16:53:05 +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: internals@lists.php.net References: <006b01d046d4$0674e6c0$135eb440$@tekwire.net> In-Reply-To: <006b01d046d4$0674e6c0$135eb440$@tekwire.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Remove $this from incompatible context From: rowan.collins@gmail.com (Rowan Collins) François Laupretre wrote on 12/02/2015 14:56: > Sorry to get off-topic but could we raise the 'undefined variable' error to E_WARNING, at least ? E_NOTICE seems very low for such an error. I think the division between E_NOTICE and E_WARNING is a bit arbitrary sometimes, but without a good definition of the difference, I think it's unhelpful to introduce "inflation" by raising severities. Don't forget that while an undefined variable is sometimes an error, it's sometimes just poor coding style, and the user is consciously relying on the implicit null (e.g. $count++, or $hash[$key] = $value, or even echo $hash[$key]). Perhaps what's needed is a survey of current messages, and an RFC to reclassify them based on some consistent definitions? Regards, -- Rowan Collins [IMSoP]