#34158 [Opn->Fbk]: Wrong t.tm_isdst flag value.
| From: | tony2001@php.net | Date: | Tue, 10 Apr 2007 16:23:42 +0000 |
| Subject: | #34158 [Opn->Fbk]: Wrong t.tm_isdst flag value. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111305@lists.php.net to get a copy of this message | ||
ID: 34158
Updated by: tony2001@php.net
Reported By: aesthete at telecenter dot ru
-Status: Open
+Status: Feedback
Bug Type: InterBase related
Operating System: Linux 2.6.12 (Fedora Core 3)
PHP Version: 4.4.0/5.x.x
New Comment:
Why do you think it should return non-empty string?
Did you try to run this query using other interfaces to Interbase?
Previous Comments:
------------------------------------------------------------------------
[2007-04-10 16:11:51] aesthete at telecenter dot ru
Ok ... some code:
try {
$dbh = new PDO
('firebird:dbname=10.0.0.1:/home/dbase/prihod/zakupka.gdb', 'SYSDBA',
'1');
foreach ($dbh->query('SELECT NAME FROM CARS ORDER BY NAME') as $row)
{
echo $row['NAME'].'<br>';
}
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
Return right strings.
But when i try 'SELECT GEN_ID(GEN_DOSTAVKA_ID,1) FROM RDB$DATABASE'
with echo $row['GEN_ID'].'<br>';
nothing return. Probably bug.
------------------------------------------------------------------------
[2007-04-09 20:41:40] tony2001@php.net
[5 Feb 2006 12:15pm UTC] tony2001@php.net
Did you try PDO_FIREBIRD ?
------------------------------------------------------------------------
[2007-04-08 22:23:51] aesthete at telecenter dot ru
-
------------------------------------------------------------------------
[2007-04-08 22:21:11] aesthete at telecenter dot ru
Is this bug will be fixed ?
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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