Doc #79939 [NEW]: RFC 822 and 2822 missing from DateTime "Compound Formats"
| From: | thomas at landauer dot at | Date: | Thu, 06 Aug 2020 12:39:58 +0000 |
| Subject: | Doc #79939 [NEW]: RFC 822 and 2822 missing from DateTime "Compound Formats" | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17750@lists.php.net to get a copy of this message | ||
From: thomas at landauer dot at
Operating system:
PHP version: Irrelevant
Package: Date/time related
Bug Type: Documentation Problem
Bug description:RFC 822 and 2822 missing from DateTime "Compound Formats"
Description:
------------
Passing an RFC 822 or RFC 2822 formatted DateTime string into the
DateTime() constructor works, but it's not documented at
https://www.php.net/manual/datetime.formats.compound.php
However, there are constants for both, and they are mentioned at
https://www.php.net/manual/class.datetime.php
Test script:
---------------
// RFC 822:
new DateTime('Mon, 15 Aug 05 15:52:01 +0000');
// RFC 2822:
new DateTime('Mon, 15 Aug 2005 15:52:01 +0000');
--
Edit bug report at https://bugs.php.net/bug.php?id=79939&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79939&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79939&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79939&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79939&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79939&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79939&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79939&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79939&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79939&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79939&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79939&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79939&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79939&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79939&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79939&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79939&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79939&r=mysqlcfg