php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79245 DateTime::RFC7231 not documented
Submitted: 2020-02-07 17:33 UTC Modified: 2020-02-16 14:06 UTC
From: looksintolasers at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Date/time related
PHP Version: 7.4.2 OS: N/A
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: looksintolasers at gmail dot com
New email:
PHP Version: OS:

 

 [2020-02-07 17:33 UTC] looksintolasers at gmail dot com
Description:
------------
---
From manual page: https://php.net/class.datetime
---
Using version 7.4.1 on Windows for development.

Missing documentation on one of the formatting constants available: 
DateTime::RFC7231
This is an important one since it's the format for the HTTP Header "Last-Modified".
Example (Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT)

Test script:
---------------
<?php
$date = new DateTime();
echo $date->format(DateTime::RFC7231);    // Works, but not documented.


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-07 20:24 UTC] cmb@php.net
-Summary: Missing Documentation +Summary: DateTime::RFC7231 not documented -Status: Open +Status: Verified -Package: *General Issues +Package: Date/time related
 [2020-02-07 20:24 UTC] cmb@php.net
Indeed, this constant is available as of PHP 7.0.19 and 7.1.15,
respectively.
 [2020-02-16 05:00 UTC] carusogabriel@php.net
This constant was introduced in #74080 but indeed was never documented. 

I've submitted a PR documenting it: https://github.com/php/doc-en/pull/41.
 [2020-02-16 05:01 UTC] carusogabriel@php.net
The following pull request has been associated:

Patch Name: Fix #79245: Document DateTime::RFC7231
On GitHub:  https://github.com/php/doc-en/pull/41
Patch:      https://github.com/php/doc-en/pull/41.patch
 [2020-02-16 14:05 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=349226
Log: Fix #79245: Document DateTime::RFC7231

This constant was introduced via
http://git.php.net/?p=php-src.git;a=commit;h=618d97962a8ac59d981c8307cc704790f46090c8
but it was never documented.
 [2020-02-16 14:06 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-02-16 14:15 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b96ede557f04c5102301ebdcaa65e2f8393692cb
Log: Fix #79245: Document DateTime::RFC7231
 [2020-02-16 22:09 UTC] mumumu@php.net
Automatic comment from SVN on behalf of mumumu
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=349232
Log: Fix #79245: Document DateTime::RFC7231

This constant was introduced via
http://git.php.net/?p=php-src.git;a=commit;h=618d97962a8ac59d981c8307cc704790f46090c8
but it was never documented.
 [2020-02-16 22:20 UTC] phpdocbot@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=58b440b7a3588e5f6eca04379d2932c2f3a4dbcd
Log: Fix #79245: Document DateTime::RFC7231
 [2020-12-30 11:59 UTC] nikic@php.net
Automatic comment on behalf of mumumu
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=7ff55ae26d542a68d2389a59bcb5721c2e9f612d
Log: Fix #79245: Document DateTime::RFC7231
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 13:01:28 2024 UTC