From:             aesthete at telecenter dot ru
Operating system: Linux 2.6.12 (Fedora Core 3)
PHP version:      4.4.0
PHP Bug Type:     InterBase related
Bug description:  Wrong t.tm_isdst flag value.

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 bug report at http://bugs.php.net/?id=34158&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34158&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34158&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34158&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34158&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34158&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34158&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34158&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34158&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34158&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34158&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34158&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34158&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34158&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34158&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34158&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34158&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34158&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34158&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34158&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34158&r=mysqlcfg

Reply via email to