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: -
Votes:2
Avg. Score:3.0 ± 0.0
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
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

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Dec 16 08:01:26 2018 UTC