note 98911 modified in errorfunc.constants by salathe
| From: | salathe@php.net | Date: | Mon, 19 Jul 2010 14:54:45 +0000 |
| Subject: | note 98911 modified in errorfunc.constants by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170968@lists.php.net to get a copy of this message | ||
Well, technically -1 will show all errors which includes any new ones included by PHP. My guess is
that E_ALL will always include new error constants so I usually prefer:
<?php
error_reporting(E_ALL | E_STRICT);
?>
Reason being: With a quick glance anyone can tell you what errors are reported. -1 might be a bit
more cryptic to newer programmers.
--was--
Well, technically -1 will show all errors which includes any new ones included by PHP. My guess is
that E_ALL will always include new error constants so I usually prefer:
<?php
error_reporting(E_ALL || E_STRICT);
?>
Reason being: With a quick glance anyone can tell you what errors are reported. -1 might be a bit
more cryptic to newer programmers.
http://php.net/manual/en/errorfunc.constants.php