#18890 [Bgs]: Default value of error_reporting has changed

From: Date: Tue, 13 Aug 2002 21:36:36 +0000
Subject: #18890 [Bgs]: Default value of error_reporting has changed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16645@lists.php.net to get a copy of this message
ID: 18890 User updated by: daniel@lorch.cc Reported By: daniel@lorch.cc Status: Bogus Bug Type: *Configuration Issues Operating System: Any PHP Version: 4.2.2 New Comment: hi, php.ini-recommended has error_reporting = E_ALL, though .. but thanks anyway for clearing this up. -daniel Previous Comments: ------------------------------------------------------------------------ [2002-08-13 17:26:06] 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:13:27] daniel@lorch.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18890&edit=1

« previous php.bugs (#16645) next »