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
 New Comment:

php 5.1.0 has this bag to ... Can you resolv this bug in next PHP
release ?


Previous Comments:
------------------------------------------------------------------------

[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".

------------------------------------------------------------------------

[2005-09-20 23:13:48] [EMAIL PROTECTED]

Can you please give a try for the PDO driver?


------------------------------------------------------------------------

[2005-08-26 16:59:45] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And try using the PDO Firebird extension instead. (configure with
--with-pdo-firebird)



------------------------------------------------------------------------

[2005-08-16 21:37:10] aesthete at telecenter dot ru

Description:
------------
My previos message was about Wrong Time conersion from db:
http://bugs.php.net/bug.php?id=34037&edit=1
I solved my problem when comment t.tm_isdst = -1; in interbase.c

I don't know is there bug of php or interbase but i have some ideas
abot it.

In interbase.c we have some code:
/*
   XXX - Might have to remove this later - seems that
isc_decode_date()
   always sets tm_isdst to 0,
   sometimes incorrectly (InterBase 6 bug?)
*/
t.tm_isdst = -1;

As you say in your comment:
"isc_decode_date() always sets tm_isdst to 0" ... thats true.

But in gds.cpp (firebird 1.5.2 source) nothing said about changeing
tm_isdst (in all gds.cpp)
to any value Except for 0 in memset(times, 0, sizeof(*times))
instructions. 
It always return tm_isdst = 0 in all api functions where "struct tm
*times" used as argument! 

I dont know why you do t.tm_isdst = -1; 
Therefore strftime(string_data, sizeof(string_data), format, &t) cannot
return right formated time string. 

May be it php bug ?)

P.S.: Sorry my english.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34158&edit=1

Reply via email to