1
Vote

Logging from Microsoft SQL Server Driver for PHP uses a different time to normal logging.

description

Hello.

I activated all logging for the sqlsvr extension.

Ran ...

php -r "phpinfo();"

Log file contains ...

[03-Sep-2009 10:45:00] PHP_MINIT_FUNCTION for php_sqlsrv: entering
[03-Sep-2009 09:45:00] sqlsrv: entering rinit
[03-Sep-2009 09:45:00] sqlsrv.WarningsReturnAsErrors = On
[03-Sep-2009 09:45:00] sqlsrv.LogSeverity = 255
[03-Sep-2009 09:45:00] sqlsrv.LogSubsystems = 255
[03-Sep-2009 09:45:02] sqlsrv: entering rshutdown

The time logged in the error log file for PHP functions uses the current time which is in DST : British Summer Time (UTC+0100 currently). The driver logs the time without the DST offset.

comments