#46425 [Opn->Bgs]: Default Error Reporting encourages lax programming
ID: 46425
Updated by: scottmac@php.net
Reported By: wbowmer at fairfaxdigital dot com dot au
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 5.3.0alpha2
New Comment:
Interesting idea, but the ini file is designed for production sites not
development. You can turn E_ALL on yourself and use display_errors to
hide from the production system.
Previous Comments:
------------------------------------------------------------------------
[2008-10-30 04:31:52] wbowmer at fairfaxdigital dot com dot au
Description:
------------
The php.ini-dist file in the archive has settings designed for a live
install, but also has settings intended for a development install. In
particular, error_reporting is set to disable Notice errors.
Unfortunately, this encourages a number of bad programming habits, most
notably using variables without intializing them. This habit is
unfortunately common in PHP code and significantly hinders debugging.
I've like to request future versions default to error_reporting = E_ALL
(i.e. enable Notice errors) in order to give PHP programmers just that
little bit extra encouragement to be better programmers.
Reproduce code:
---------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46425&edit=1
Thread (3 messages)