php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68355 Inconsistency in example php.ini comments
Submitted: 2014-11-05 18:24 UTC Modified: -
From: thuejk at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.6.2 OS: All
Private report: No CVE-ID: None
 [2014-11-05 18:24 UTC] thuejk at gmail dot com
Description:
------------
PHP 5.6.2 comes with two php.ini example files. However, there are some unintended differences:

t@vd7 ~/php-5.6.2> diff php.ini-production php.ini-development 
86c86
< ; This is php.ini-production INI file.
---
> ; This is php.ini-development INI file.
452c452
< error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
---
> error_reporting = E_ALL
469c469
< display_errors = Off
---
> display_errors = On
480c480
< display_startup_errors = Off
---
> display_startup_errors = On
524c524
< track_errors = Off
---
> track_errors = On
681c681
< ; PHP's default character set is set to empty.
---
> ; PHP's default character set is set to UTF-8
690a691
> ; If empty, default_charset is used.
694a696
> ; If empty, default_charset is used.
765c767
< ;cgi.redirect_status_env =
---
> ;cgi.redirect_status_env = 
1246c1248
< mysqlnd.collect_memory_statistics = Off
---
> mysqlnd.collect_memory_statistics = On


While most of those differences are fine, the comments are differing for no reason at all. The parts I think are unnecessary differences are:

681c681
< ; PHP's default character set is set to empty.
---
> ; PHP's default character set is set to UTF-8
690a691
> ; If empty, default_charset is used.
694a696
> ; If empty, default_charset is used.
765c767
< ;cgi.redirect_status_env =
---
> ;cgi.redirect_status_env = 

One of the versions of the first difference's "PHP's default character set is set to X" has to be directly wrong.


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-19 17:07 UTC] salathe@php.net
Automatic comment on behalf of cilefen@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1e92b24a2aeedfe7679f2d5d92b5cfdb363b549b
Log: Fix #68355: Inconsistency in example php.ini comments
 [2014-11-19 17:07 UTC] salathe@php.net
-Status: Open +Status: Closed
 [2014-11-26 16:21 UTC] ab@php.net
Automatic comment on behalf of cilefen@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1e92b24a2aeedfe7679f2d5d92b5cfdb363b549b
Log: Fix #68355: Inconsistency in example php.ini comments
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC