Should I care about these errors?
| From: | Angus Mann | Date: | Thu, 05 Nov 2009 08:02:27 +0000 |
| Subject: | Should I care about these errors? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-299632@lists.php.net to get a copy of this message | ||
Hi all. I find that when I turn on strict error reporting:
ERROR_REPORTING(E_ALL);
I see all sorts of errors in scripts that otherwise work just fine.
The most common I guess is "Use of undefined constant".
I know where the errors come from and I know how to stop them, but I guess my question is "Should I bother?" Is there really any any harm if I write:
$price = 100;
without first defining $tennis as a string, or an integer or whatever?