|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18890 Default value of error_reporting has changed
Submitted: 2002-08-13 17:13 UTC Modified: 2002-08-13 17:36 UTC
From: daniel at lorch dot cc Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.2.2 OS: Any
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: daniel at lorch dot cc
New email:
PHP Version: OS:


 [2002-08-13 17:13 UTC] daniel at lorch dot cc

It appears like error_reporting now also includes E_NOTICE by default. This causes a lot of scripts to spit out bogus errors. I know the error should be fixed in the script in the first place, but I couldn't find anything about this change either in the bug database nor in the changelog so I assume it is a bug and not an intentional setting. However, feel free to bogusify if I'm wrong :)



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 17:26 UTC]
Not true, in the code the default is:

EG(error_reporting) = E_ALL & ~E_NOTICE;

Which means that is the value if you have no php.ini file.  The default php.ini-dist file that comes with the distribution tarball has:

error_reporting  =  E_ALL & ~E_NOTICE

So again here nothing has changed.  Now, individual binary distributions may or may not have changed this.  I think a windows build at some point had it set to E_ALL, but the default has not changed.
 [2002-08-13 17:36 UTC] daniel at lorch dot cc

php.ini-recommended has error_reporting = E_ALL, though .. but thanks anyway for clearing this up.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 01:01:28 2024 UTC