note 37462 rejected from function.error-reporting by vincent
| From: | vincent@php.net | Date: | Sun, 16 Nov 2003 09:39:56 +0000 |
| Subject: | note 37462 rejected from function.error-reporting by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60450@lists.php.net to get a copy of this message | ||
Note Submitter: php@phpprograms.com
----
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..