PHP :: Bug #76577 :: outdated documentation concerning track_errors
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: -
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mbiebl at messageconcept dot com
New email:
PHP Version: OS:

 

 [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: Fri Aug 17 18:01:26 2018 UTC