#34158 [Com]: Wrong t.tm_isdst flag value.

From: Date: Tue, 17 Jan 2006 14:05:23 +0000
Subject: #34158 [Com]: Wrong t.tm_isdst flag value.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92059@lists.php.net to get a copy of this message
ID: 34158 Comment by: c dot coppari at sintekno dot it Reported By: aesthete at telecenter dot ru Status: No Feedback Bug Type: InterBase related Operating System: Linux 2.6.12 (Fedora Core 3) PHP Version: 4.4.0 New Comment: I think the problem is in mktime() function, at line: timestamp = mktime(&t); This is because the variable t for SQL_TYPE_TIME doesn't get the proper values for month, year and day. The mktime() function tries to normalize the date, however with libc6 this result in an incorrect time. I used this patch: case SQL_TYPE_TIME: isc_decode_sql_time((ISC_TIME *) data, &t); format = IBG(timeformat); t.tm_mday = 16; t.tm_mon = 0; t.tm_year = 106; break; Forcing the day, month and year with a correct value solved the problem for me. I don't know if this is the correct behaviour of mktime(). Previous Comments: ------------------------------------------------------------------------ [2006-01-16 14:59:25] c dot coppari at sintekno dot it I have experienced the same bug with Fedora Core 4, PHP 4.4.1 and Interbase 6. With PHP 4.4.1 and Interbase 6 on Red Hat 7.3 this doesn't happen, so I think this could be a problem related with the Fedora libraries. ------------------------------------------------------------------------ [2005-12-06 01:00:06] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-11-28 12:17:17] tony2001@php.net [20 Sep 11:13pm CEST] sniper@php.net Can you please give a try for the PDO driver? ------------------------------------------------------------------------ [2005-11-28 11:09:58] aesthete at telecenter dot ru php 5.1.0 has this bag to ... Can you resolv this bug in next PHP release ? ------------------------------------------------------------------------ [2005-09-28 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34158 -- Edit this bug report at http://bugs.php.net/?id=34158&edit=1

« previous php.bugs (#92059) next »