Re: Why "Notice: Use of undefined constant mefe - assumed 'mefe' in C:\...\calc.php on line 24"??
| From: | Adam Voigt | Date: | Tue, 18 Feb 2003 17:40:21 +0000 |
| Subject: | Re: Why "Notice: Use of undefined constant mefe - assumed 'mefe' in C:\...\calc.php on line 24"?? | ||
| References: | 1 2 3 4 5 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10079@lists.php.net to get a copy of this message | ||
Let see the amount of applications are useless
just because they do not take care about these settings.
A. What?
B. If your trying to say look at the amount of programs that are useless
because they don't pre-initialize there values, the answer would be
very, very, very, few. Because it would only affect people not-knowing
to change ther INI to safely ignore notice's and those programmers who
didn't know they could block the notices from within there code.
On Tue, 2003-02-18 at 12:35, Pierre-Alain Joye wrote:
On 18 Feb 2003 12:30:59 -0500
Adam Voigt <adam@cryptocomm.com> wrote:
> 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
<snip>
I simply do not agree, variable initialisations, well defined
constants,
etc... is, imho, the best practice. And make your code cleaner and
work
on any configuration. Let see the amount of applications are useless
just because they do not take care about these settings.
But it's not a flamewar, just an advice, do whatever you like :-)
pierre
--
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
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc