Edit report at https://bugs.php.net/bug.php?id=60723&edit=1
ID: 60723
Comment by: canderson at tmcc dot edu
Reported by: olemarkus at gentoo dot org
Summary: error_log error time has changed to UTC ignoring
default timezo
Status: Assigned
Type: Bug
Package: *General Issues
Operating System: Gentoo Linux
PHP Version: 5.3.9
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
I have the same issue running PHP 5.3.9 on Windows IIS 7.5
Previous Comments:
------------------------------------------------------------------------
[2012-01-20 10:29:43] tomop at teamgedoh dot net
I have the same problem.
The "localtime" argument passed to the php_format_date() function
was changed from 1 to 0 between 5.3.8 and 5.3.9.
Did it cause the problem?
In /[svn]/php/php-src/branches/PHP_5_3/main/main.c
*revision 319750, line 602:
error_time_str = php_format_date("d-M-Y H:i:s", 11, error_time, 1
TSRMLS_CC);
*revision 319823, line 602:
error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, 0
TSRMLS_CC);
------------------------------------------------------------------------
[2012-01-12 09:08:22] olemarkus at gentoo dot org
Description:
------------
PHP error log no longer respects timezone and always logs in UTC.
Setting error_log to a filesystem path and date.default_timezone to e.g
Europe/Oslo gives the following log lines in 5.3.8:
[12-Jan-2012 10:02:38] PHP Notice: Undefined variable: foo in
/home/htdocs/index.php on line 3
[12-Jan-2012 10:02:38] PHP Fatal error: Call to a member function bar() on a
non-object in /home/htdocs/index.php on line 3
While in 5.3.9 you get:
[12-Jan-2012 09:06:00 UTC] PHP Notice: Undefined variable: foo in
/home/htdocs/index.php on line 3
[12-Jan-2012 09:06:00 UTC] PHP Fatal error: Call to a member function bar() on
a non-object in /home/htdocs/index.php on line 3
Also see downstream bug: https://bugs.gentoo.org/show_bug.cgi?id=398445
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60723&edit=1