#34158 [NoF->Opn]: Wrong t.tm_isdst flag value.
| From: | aesthete at telecenter dot ru | Date: | Sun, 08 Apr 2007 22:21:16 +0000 |
| Subject: | #34158 [NoF->Opn]: Wrong t.tm_isdst flag value. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111221@lists.php.net to get a copy of this message | ||
ID: 34158
User updated by: aesthete at telecenter dot ru
Reported By: aesthete at telecenter dot ru
-Status: No Feedback
+Status: Open
Bug Type: InterBase related
Operating System: Linux 2.6.12 (Fedora Core 3)
-PHP Version: 4.4.0
+PHP Version: 4.4.0/5.х.х
New Comment:
Is this bug will be fixed ?
Previous Comments:
------------------------------------------------------------------------
[2006-09-17 09:49:41] mario dot perazzoli at tiscali dot it
I think the bug is related with an other bug into libc: in the version
4 and 5 of fedora core distribution, strftime don't work correctly with
tm_isdst = -1 (undefined).
My question is: whi ib/fb should return another value ather than 0 for
tm_isdst?
I have been solved the bug whith a comment to the row t.tm_isdst = -1;
regards
------------------------------------------------------------------------
[2006-02-13 01:00:03] 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".
------------------------------------------------------------------------
[2006-02-05 12:15:13] tony2001@php.net
Did you try PDO_FIREBIRD ?
------------------------------------------------------------------------
[2006-02-05 11:57:01] aesthete at telecenter dot ru
In php-5.1.2 this bug too ...
------------------------------------------------------------------------
[2006-01-17 15:05:21] c dot coppari at sintekno dot it
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().
------------------------------------------------------------------------
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