note 37462 added to function.error-reporting
| From: | php at phpprograms dot com | Date: | Sun, 16 Nov 2003 05:58:20 +0000 |
| Subject: | note 37462 added to function.error-reporting | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60447@lists.php.net to get a copy of this message | ||
The documentation above states:
// Turn off all error reporting
error_reporting(0);
I have found that I still get parser errrors when I use this at the top of the page. For instance..
<?
error_reporting(0);
hello world - this should not be here!
?>
that produces:
Parse error: parse error in /blah/htdocs/stats/test_err.php on line 3
Not sure how to resolve this, maybe a php.ini level modification may override it.. but that
doesn't solve my issues of being able to both have errors in our dev scripts and mask errors in
our production scripts.. hmm..
----
Manual Page -- http://www.php.net/manual/en/function.error-reporting.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37462
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37462&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37462&report=yes
Search -- http://master.php.net/manage/user-notes.php