Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81267 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54186 invoked from network); 28 Jan 2015 00:19:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 00:19:12 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:41764] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/31-45774-DFA28C45 for ; Tue, 27 Jan 2015 19:19:10 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 548FA2400C7; Tue, 27 Jan 2015 19:19:06 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JF8DbsYQazkb; Tue, 27 Jan 2015 19:19:06 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 8EC132400A9; Tue, 27 Jan 2015 19:19:05 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54C80F4F.7020905@gmail.com> Date: Wed, 28 Jan 2015 00:19:02 +0000 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <95B04881-B682-403B-9459-99E30B9667D7@ajf.me> References: <54C80F4F.7020905@gmail.com> To: Rowan Collins X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Proposal: Raise severity of undefined constants From: ajf@ajf.me (Andrea Faulds) Hey Rowan, I actually was thinking about doing this myself, if function/constant = autoloading passed. That would mean that if you really needed this = behaviour for some reason, you could write a constant autoloader that = reimplements it. One concern I=E2=80=99d have is the use of constants in constant scalar = expressions. In implementation, we=E2=80=99d need to make sure those = produce an error, not just normal constant usage. Anyway, I=E2=80=99m very much in favour of this. Please go ahead! Thanks. -- Andrea Faulds http://ajf.me/