php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37808 Wrong Date format specified in imap_check()
Submitted: 2006-06-14 20:13 UTC Modified: 2006-09-12 21:45 UTC
From: yincrash at gmail dot com Assigned: bjori (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
 [2006-06-14 20:13 UTC] yincrash at gmail dot com
Description:
------------
The Date being returned by imap_check() is not RFC822 formatted, it is RFC2822 formatted. RFC822 does not include 4 digit years or having the zone + the time differential.

Reproduce code:
---------------
var_export(imap_check($imap));

Expected result:
----------------
class stdClass {
 var $Date = 'Wed, 14 Jun 06 16:07:21 -0400;
 var $Driver = 'imap';
 var $Mailbox = '{vfemail.net:143/imap/user="miketest@vfemail.net"}INBOX';
 var $Nmsgs = 2;
 var $Recent = 0;
}

Actual result:
--------------
class stdClass {
 var $Date = 'Wed, 14 Jun 2006 16:07:21 -0400 (Eastern Standard Time)';
 var $Driver = 'imap';
 var $Mailbox = '{vfemail.net:143/imap/user="miketest@vfemail.net"}INBOX';
 var $Nmsgs = 2;
 var $Recent = 0;
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-12 21:45 UTC] bjori@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Nov 25 04:00:01 2025 UTC