Bug #8909 Updated: PHP generates the Date: header line with a bad timezone
| From: | walter dot pollard at unisys dot com | Date: | Wed, 23 Jan 2002 21:09:38 +0000 |
| Subject: | Bug #8909 Updated: PHP generates the Date: header line with a bad timezone | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-77932@lists.php.net to get a copy of this message | ||
ID: 8909
Comment by: walter.pollard@unisys.com
Old Reported By: rthornto@pictel.com
Reported By: walter.pollard@unisys.com
Status: Closed
Bug Type: Mail related
Operating System: Windows
PHP Version: 4.0.4pl1
New Comment:
To: Derick@php.net,
Derick, which release is this problem fixed in? We are running
PHP Version 4.0.6 and are experiencing the same problem.
Previous Comments:
------------------------------------------------------------------------
[2002-01-23 12:41:40] tob@golflink.net
This is marked as closed but I'm still seeing this same problem on the
latest windows release. 4.1
------------------------------------------------------------------------
[2001-11-30 04:28:16] derick@php.net
This is now fixed in CVS (I hope).
Derick
------------------------------------------------------------------------
[2001-06-22 18:28:32] hholzgra@php.net
windows mailcode needs a rewrite
------------------------------------------------------------------------
[2001-01-25 11:54:32] rthornto@pictel.com
If the PHP mail() function is allowed to generate the "Date:" header
field, the sign of the timezone is inverted.
The system "timezone" is the number of minutes difference between UTC
and local time (EST= +300). In the Date: header, the timezone is
formatted as "HHMM" and is the difference between local time and UTC
(reversed difference, EST= -0500).
In win32/sendmail.c, the sign of the system "timezone" variable is
copied to the Date: header without being inverted.
Also, there should be a sign even if the timezone offset is 0.
Therefore in sprintf() that generates the "Date:" header in the
PostHeader() function, the timezone test should read:
(_timezone > 0) ? "-" : "+",
This problem was also in the PHP3 source.
Regard, -Ron-
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=8909&edit=1