Re: Why "Notice: Use of undefined constant mefe - assumed 'mefe' in C:\...\calc.php on line 24"??

From: Date: Tue, 18 Feb 2003 17:30:59 +0000
Subject: Re: Why "Notice: Use of undefined constant mefe - assumed 'mefe' in C:\...\calc.php on line 24"??
References: 1 2 3  Groups: php.install 
Request: Send a blank email to php-install+get-10077@lists.php.net to get a copy of this message
On Tue, 2003-02-18 at 10:59, Pierre-Alain Joye wrote: Hmmm, bad advice, you better to safely fix them. Reply: This is infact an extremely common practice, and infact 90% of the PHP applications for download will generate these notice's. It doesn't mean anything's wrong it, just means you did $somearray[pos] instead of $somearray['pos']. Same thing for un-initialized variables not relating to array's. Granted, you can remove them with extremely careful program rewriting, but why clutter all the code, and go through the mountain's of places where code like this exists just to avoid being lazy and doing what is pretty much the consensus of all sain people, and setting the variable to ignore notice's in the ini file. Your answer of "better just fix them" is infact an EXTREMELY un-informed answer because if you knew the shear amount of code and programs that existed that generates these notice's you wouldn't even consider saying that, especially since it does no harm leaving it to ignore warning's, and if your worried about it causing you to miss something on your development, you can just set full error debugging at the top of your page to see the useless crap that you can 99% of the time safely ignore. -- Adam Voigt (adam@cryptocomm.com) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.install (#10077) next »