Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88706 invoked from network); 20 Dec 2008 13:38:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2008 13:38:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=crrodriguez@suse.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=crrodriguez@suse.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain suse.de from 195.135.220.15 cause and error) X-PHP-List-Original-Sender: crrodriguez@suse.de X-Host-Fingerprint: 195.135.220.15 cantor2.suse.de Linux 2.4/2.6 Received: from [195.135.220.15] ([195.135.220.15:52785] helo=mx2.suse.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/03-02661-645FC494 for ; Sat, 20 Dec 2008 08:38:15 -0500 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id C3975484A7 for ; Sat, 20 Dec 2008 14:38:11 +0100 (CET) Message-ID: <494CF47A.3000300@suse.de> Date: Sat, 20 Dec 2008 10:34:50 -0300 Organization: Platform/OpenSUSE - Core Services, SUSE LINUX Products GmbH, Research & Development User-Agent: Thunderbird 2.0.0.18 (X11/20081112) MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=85898BD3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE45214F8E85B5B54F4F1B67A" Subject: Re: [PHP-DEV] Undefined constants producing E_NOTICE From: crrodriguez@suse.de (=?UTF-8?B?Q3Jpc3RpYW4gUm9kcsOtZ3Vleg==?=) --------------enigE45214F8E85B5B54F4F1B67A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kuba Wieczorek escribi=C3=B3: > Hello everyone, >=20 > Currently when an undefined constant is called, E_NOTICE is produced an= d > the name of the constant is assumed to be a string. In my opinion this > behaviour is strange and problematic for most developers. Maybe it woul= d > be good if invoking undefined constants will start to produce at least > E_WARNING? Use class constants class foo { } echo foo::BAR; Fatal error: Undefined class constant 'BAR' ... that's what you are really looking for... ;) --=20 "We have art in order not to die of the truth" - Friedrich Nietzsche Cristian Rodr=C3=ADguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------enigE45214F8E85B5B54F4F1B67A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAklM9HwACgkQhbiInYWJi9MrkwCfQMawkyDXZvp+GumfyC7PYzJI aYAAniv6PG5SpumnrYuD0hzQFt7WgYVQ =lRtu -----END PGP SIGNATURE----- --------------enigE45214F8E85B5B54F4F1B67A--