Bug #11891 Updated: error_reporting option broken/changed
| From: | sniper@php.net | Date: | Mon, 19 Nov 2001 00:50:10 +0000 |
| Subject: | Bug #11891 Updated: error_reporting option broken/changed | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70848@lists.php.net to get a copy of this message | ||
ID: 11891
Updated by: sniper
Reported By: vejrum@doek.dk
Old Status: Open
Status: Feedback
Bug Type: PHP options/info functions
Operating System: Linux (Cobalt RaQ3)
PHP Version: 4.0.6
New Comment:
Are you sure your php.ini file is read by PHP ?
Try setting the error_reporting in the script:
<?php
error_reporting(E_ALL & ~E_NOTICE);
echo $test;
?>
Previous Comments:
------------------------------------------------------------------------
[2001-07-04 16:38:57] vejrum@doek.dk
Argh - "and same result with:" should be:
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
------------------------------------------------------------------------
[2001-07-04 16:36:08] vejrum@doek.dk
With PHP 4.0.1 this worked fine - warnings for undefined variables were not displayed:
error_reporting = E_ALL & ~E_NOTICE
With PHP 4.0.6 this does not seem to work anymore - warnings for undefined variables are now
displayed - and same result with:
error_reporting = E_ALL & ~E_NOTICE
I only seem to be able to get rid of the warnings for undefined variables by not displaying errors
at all:
display_errors = Off
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11891&edit=1