|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52126 The mail.log added in PHP 5.3.0 has no timestamps.
Submitted: 2010-06-19 17:03 UTC Modified: 2013-01-06 14:14 UTC
Avg. Score:4.9 ± 0.3
Reproduced:7 of 7 (100.0%)
Same Version:5 (71.4%)
Same OS:3 (42.9%)
From: mark at msapiro dot net Assigned: kalle (profile)
Status: Closed Package: Mail related
PHP Version: 5.3.2 OS: CentOS 5
Private report: No CVE-ID: None
 [2010-06-19 17:03 UTC] mark at msapiro dot net
The entries in the PHP 5.3.0 and up mail.log have no timestamps. Timestamps would be incredibly useful for multiple reasons including meaningful logwatch reports.


Add_timestamp_to_mail.log--probably_could_be_better_if_I_knew_any_php_internals (last revision 2010-06-19 20:27 UTC by mark at msapiro dot net)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-20 19:22 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2012-04-23 18:15 UTC] bakers at canbytel dot com
Timestamps would be EXTREMELY useful for this function. I second the request for adding this functionality.
 [2012-12-24 10:45 UTC]
See for a slightly alternative approach 
using the common date format in PHP.
 [2013-01-06 14:14 UTC]
-Status: Assigned +Status: Closed
 [2013-01-06 14:14 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Fixed in 5.5 and master.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 06:01:31 2024 UTC