php.net |  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: Closed Package: Date/time related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mark at manngo dot net
New email:
PHP Version: OS:

 

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

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


Patches

Pull Requests

History

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

[1] <https://github.com/php/doc-en/pulls>
 [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

	https://www.php.net/manual/en/datetime.format.php

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

	» RFC 2822 formatted date

RFC 2822 has been obsoleted by RFC 5322:

	http://www.faqs.org/rfcs/rfc5322.html
 [2021-03-15 21:02 UTC] cmb@php.net
-Status: Assigned +Status: Open -Assigned To: cmb +Assigned To:
 [2021-03-15 21:02 UTC] cmb@php.net
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.
 [2022-06-02 16:18 UTC] git@php.net
Automatic comment on behalf of derickr
Revision: https://github.com/php/doc-en/commit/5e983c42a0d9b803538f843954b665435f663671
Log: Fixed bug #79725: Update reference to RFC2822 to RFC5322
 [2022-06-02 16:18 UTC] git@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 12:01:29 2024 UTC