ID: 34158
Comment by: mario dot perazzoli at tiscali 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 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
Previous Comments:
------------------------------------------------------------------------
[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] [EMAIL PROTECTED]
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().
------------------------------------------------------------------------
[2005-11-28 12:17:17] [EMAIL PROTECTED]
[20 Sep 11:13pm CEST] [EMAIL PROTECTED]
Can you please give a try for the PDO driver?
------------------------------------------------------------------------
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