|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vejrum at doek dot dk
New email:
PHP Version: OS:


 [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


Add a Patch

Pull Requests

Add a Pull Request


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

 [2001-11-18 19:50 UTC]
Are you sure your php.ini file is read by PHP ?
Try setting the error_reporting in the script:


error_reporting(E_ALL & ~E_NOTICE);

echo $test; 


 [2001-12-13 06:26 UTC]
No feedback. Closing.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 00:01:22 2020 UTC