php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76577 outdated documentation concerning track_errors
Submitted: 2018-07-04 11:38 UTC Modified: 2019-09-02 13:08 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mbiebl at messageconcept dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.2.7 OS: Windows Server 2016
Private report: No CVE-ID: None
 [2018-07-04 11:38 UTC] mbiebl at messageconcept dot com
Description:
------------
In PHP 7.2, "track_errors = On" has been deprecated which means it is recommended to no longer use this feature.
Looking at the php.ini-production file that is shipped inside the source tarball, it says:

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

Here it says that the value for development mode is On. This is clearly wrong, because looking at php.ini-development there is

; Store the last error/warning message in $php_errormsg (boolean).
; This directive is DEPRECATED.
; Default Value: Off
; Development Value: Off
; Production Value: Off
; http://php.net/track-errors
;track_errors = Off

So even in development mode, the value is Off. Either the section in "Quick Reference" should be updated or preferrably removed (I don't see a good reason mentioning a deprecated config option there).

I also miss a note at http://php.net/manual/en/errorfunc.configuration.php#ini.track-errors that this configuration option has been deprecated.





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-02 13:01 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=347919
Log: Fix #76577: outdated documentation concerning track_errors

Cf. <https://wiki.php.net/rfc/deprecations_php_7_2#php_errormsg>
 [2019-09-02 13:05 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3d050d3f2f7f94f5d10245007d0c2302f7800246
Log: Fix #76577: outdated documentation concerning track_errors
 [2019-09-02 13:05 UTC] salathe@php.net
-Status: Open +Status: Closed
 [2019-09-02 13:08 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=cd63908ab8f216d5095b2517eb90488cda2c321e
Log: Fix #76577: outdated documentation concerning track_errors
 [2019-09-02 13:08 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-02-07 06:04 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=6da0f0108c47bc9b80175fba0175535cb24ea258
Log: Fix #76577: outdated documentation concerning track_errors
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC