|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79725 Update reference to RFC2822 to RFC5322
Submitted: 2020-06-23 08:01 UTC Modified: 2021-03-15 21:02 UTC
From: mark at manngo dot net Assigned:
Status: Open Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-06-23 08:01 UTC] mark at manngo dot net
The documentation on the date() function at describes the code as for an RFC2822 formatted date.

This is pedantic, I know, but RFC2822 has long been obsoleted by RFC5322.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-15 16:56 UTC]
-Status: Open +Status: Feedback -Package: Documentation problem +Package: Date/time related -Assigned To: +Assigned To: cmb
 [2021-03-15 16:56 UTC]
To what exactly are you referring to?  Maybe consider to provide a
pull request[1].

[1] <>
 [2021-03-15 18:54 UTC] mark at manngo dot net
-Status: Feedback +Status: Assigned
 [2021-03-15 18:54 UTC] mark at manngo dot net
The documentation I was referring to has been moved to

In it, the description for the “r” format code says:

	» RFC 2822 formatted date

RFC 2822 has been obsoleted by RFC 5322:
 [2021-03-15 21:02 UTC]
-Status: Assigned +Status: Open -Assigned To: cmb +Assigned To:
 [2021-03-15 21:02 UTC]
Ah, thanks!  I get your point, but I'm not quite sure if we should
change that (it is technically not wrong to refer to RFC 2822),
and there actually is DateTimeInterface::RFC2822/DATE_RFC2822
which we cannot rename for BC reasons.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 16:01:23 2021 UTC