ID: 11891
Updated by: sniper
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

Argh - "and same result with:" should be:
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR


------------------------------------------------------------------------

[2001-07-04 16:36:08] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to