|  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: -
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:
Status: Open Package: Documentation problem
PHP Version: 7.2.7 OS: Windows Server 2016
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-07-04 11:38 UTC] mbiebl at messageconcept dot com
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
;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 that this configuration option has been deprecated.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 21:01:26 2019 UTC