Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45464 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89060 invoked from network); 3 Sep 2009 12:06:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2009 12:06:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@iki.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@iki.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iki.fi from 204.13.248.72 cause and error) X-PHP-List-Original-Sender: jani.taskinen@iki.fi X-Host-Fingerprint: 204.13.248.72 mho-02-ewr.mailhop.org Received: from [204.13.248.72] ([204.13.248.72:57015] helo=mho-02-ewr.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/B0-19451-451BF9A4 for ; Thu, 03 Sep 2009 08:06:45 -0400 Received: from a88-112-30-186.elisa-laajakaista.fi ([88.112.30.186] helo=localhost.localdomain) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.68) (envelope-from ) id 1MjB5N-0002Cj-Pf; Thu, 03 Sep 2009 12:06:42 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 88.112.30.186 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/GQEBcM+ikKq8rRIBT8vsdhXKP45a8cUU= Message-ID: <4A9FB14F.6090608@iki.fi> Date: Thu, 03 Sep 2009 15:06:39 +0300 Reply-To: jani.taskinen@iki.fi User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: RQuadling@googlemail.com CC: PHP internals , internals-win@lists.php.net References: <10845a340909030410i6be64e8aod5bc491a333f69d6@mail.gmail.com> In-Reply-To: <10845a340909030410i6be64e8aod5bc491a333f69d6@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Timezone for php_error_log. From: jani.taskinen@iki.fi (Jani Taskinen) Errors output from MINIT can not and will not ever have any other timezone than what is the system's timezone. If you're reporting a bug, please do it at http://bugs.php.net/. Anyways the code in sqlsrv is pretty horrible. I'd cleanup that mess first. Unless of course you can reproduce same under something else than windows and with any other extensions. --Jani On 09/03/2009 02:10 PM, Richard Quadling wrote: > Hi. > > I've been playing with the MS SQL Server driver > (https://sqlsrvphp.svn.codeplex.com/svn). > > Using this code (editing it to work with the default WinResrc.h rather > than the winres.h it is currently asking for) ... > > AND ... > > turning on the logging via the ini file (as I was playing I just > wanted to see what was logged) ... > > sqlsrv.LogSeverity = -1 > sqlsrv.LogSubsystems = -1 > sqlsrv.WarningsReturnAsErrors = On > > The log file shows entries like ... > > [03-Sep-2009 11:55:11] PHP Warning: PHP Startup: Unable to load > dynamic library 'C:/PHP5/ext\php_curl.dll' - The operating system > cannot run %1. > in Unknown on line 0 > [03-Sep-2009 11:55:11] PHP_MINIT_FUNCTION for php_sqlsrv: entering > [03-Sep-2009 10:55:11] sqlsrv: entering rinit > [03-Sep-2009 10:55:11] sqlsrv.WarningsReturnAsErrors = On > [03-Sep-2009 10:55:11] sqlsrv.LogSeverity = 255 > [03-Sep-2009 10:55:11] sqlsrv.LogSubsystems = 255 > [03-Sep-2009 10:55:11] sqlsrv: entering rshutdown > > In changing /* $Id: main.c 286478 2009-07-29 00:17:10Z stas $ */ ... > > error_time_str = php_format_date("d-M-Y H:i:s", 11, error_time, > php_during_module_startup() TSRMLS_CC); > > to > > error_time_str = php_format_date("d-M-Y H:i:s e", 13, error_time, > php_during_module_startup() TSRMLS_CC); > > the log file now looks like ... > > [03-Sep-2009 11:55:11 Europe/London] PHP Warning: PHP Startup: Unable > to load dynamic library 'C:/PHP5/ext\php_curl.dll' - The operating > system cannot run %1. > in Unknown on line 0[03-Sep-2009 11:55:11 Europe/London] > PHP_MINIT_FUNCTION for php_sqlsrv: entering > [03-Sep-2009 10:55:11 UTC] sqlsrv: entering rinit > [03-Sep-2009 10:55:11 UTC] sqlsrv.WarningsReturnAsErrors = On > [03-Sep-2009 10:55:11 UTC] sqlsrv.LogSeverity = 255 > [03-Sep-2009 10:55:11 UTC] sqlsrv.LogSubsystems = 255 > [03-Sep-2009 10:55:11 UTC] sqlsrv: entering rshutdown > > I'm not too sure what's going on. I think it has something to do with > php_during_module_startup(), but I can't work out when the response to > this function will ever change as it returns a static int value. > > The above logs were created using date.timezone=Europe/London and calling ... > > php -m > > > > This gets a little odder when I use ... > > php -d date.timezone=Europe/Berlin -m > > The output is now ... > > [03-Sep-2009 12:05:40 Europe/London] PHP Warning: PHP Startup: Unable > to load dynamic library 'C:/PHP5/ext\php_curl.dll' - The operating > system cannot run %1. > in Unknown on line 0 > [03-Sep-2009 13:05:41 Europe/Berlin] PHP_MINIT_FUNCTION for php_sqlsrv: entering > [03-Sep-2009 11:05:41 UTC] sqlsrv: entering rinit > [03-Sep-2009 11:05:41 UTC] sqlsrv.WarningsReturnAsErrors = On > [03-Sep-2009 11:05:41 UTC] sqlsrv.LogSeverity = 255 > [03-Sep-2009 11:05:41 UTC] sqlsrv.LogSubsystems = 255 > [03-Sep-2009 11:05:41 UTC] sqlsrv: entering rshutdown > > > Don't worry about the specifics of the curl error - this isn't my issue. > > > I would suggest that the datetime extension needs to be loaded before > the curl library request as I assume this will get the timezone I've > supplied (Europe/Berlin). > > I'm just not sure about the sqlsrv timezone though at all. Why isn't > this Europe/something rather than UTC? > > > Regards, > > Richard. > > >