note 75651 added to function.error-reporting
| From: | Sinured at osu1 dot php dot net | Date: | Sun, 10 Jun 2007 19:32:30 +0000 |
| Subject: | note 75651 added to function.error-reporting | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127363@lists.php.net to get a copy of this message | ||
For those who are not familiar with bitwise operations:
E_ALL does *not* include the Strict Standards, and vice-versa -- E_STRICT does not include all other
types of errors.
So <?php error_reporting(E_STRICT);?> excludes all errors except those strict ones (hard to
occur, aren't they?).
<?php
error_reporting(E_ALL | E_STRICT);
error_reporting(E_ALL + E_STRICT);
// Both the same (8191)
?>
Worked like a charm for me. (Stone me if I'm wrong ;-)
----
Server IP: 64.71.164.2
Probable Submitter: 172.173.206.108
----
Manual Page -- http://www.php.net/manual/en/function.error-reporting.php
Edit -- https://master.php.net/note/edit/75651
Del: integrated -- https://master.php.net/note/delete/75651/integrated
Del: useless -- https://master.php.net/note/delete/75651/useless
Del: bad code -- https://master.php.net/note/delete/75651/bad+code
Del: spam -- https://master.php.net/note/delete/75651/spam
Del: non-english -- https://master.php.net/note/delete/75651/non-english
Del: in docs -- https://master.php.net/note/delete/75651/in+docs
Del: other reasons-- https://master.php.net/note/delete/75651
Reject -- https://master.php.net/note/reject/75651
Search -- https://master.php.net/manage/user-notes.php