php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11891 error_reporting option broken/changed
Submitted: 2001-07-04 16:36 UTC Modified: 2001-12-13 06:26 UTC
From: vejrum at doek dot dk Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.6 OS: Linux (Cobalt RaQ3)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 13 = ?
Subscribe to this entry?

 
 [2001-07-04 16:36 UTC] vejrum at doek dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-04 16:38 UTC] vejrum at doek dot dk
Argh - "and same result with:" should be:
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

 [2001-11-18 19:50 UTC] sniper@php.net
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; 

?>

 [2001-12-13 06:26 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 15:01:30 2024 UTC