php.net |  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
 [2002-08-13 17:13 UTC] daniel at lorch dot cc
hi,

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 :)

-daniel

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-13 17:26 UTC] rasmus@php.net
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
hi,

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

-daniel
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC