ID: 46425 User updated by: wbowmer at fairfaxdigital dot com dot au Reported By: wbowmer at fairfaxdigital dot com dot au Status: Bogus Bug Type: Feature/Change Request Operating System: All PHP Version: 5.3.0alpha2 New Comment:
Is the file php.ini-dist really designed for production? It seems to be a bit uncertain on that score. 1. The first comment, lines 6-11 clearly state the goal for this file is for a development environment and that a production environment should use php.ini-recommended. 2. There are several settings designed for a development environment, such as display_errors = on, output_buffering = off and log_errors = On. 3. OTOH, error_reporting has Notices disabled, whilst php.ini-recommended has then enabled. :-/ This is backwards. There are other inconsistencies between the two php.ini files, but my major point was that php.ini-dist is the one normally installed - thus it is used largely _as-is_ for *development* environments and should have defaults to encourage better programming. My concern wasn't how the defaults apply to me - but how they apply to people who don't bother changing them. Previous Comments: ------------------------------------------------------------------------ [2008-10-30 10:28:00] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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
