#41025 [Asn->Fbk]: ibase_query(): Wrong result for SELECT GEN_ID(...)
ID: 41025
Updated by: tony2001@php.net
Reported By: aesthete at telecenter dot ru
-Status: Assigned
+Status: Feedback
Bug Type: InterBase related
Operating System: Win XP sp2
PHP Version: 5CVS-2007-04-08 (snap)
Assigned To: helly
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2007-04-09 20:42:35] tony2001@php.net
Marcus, your patch causes this:
http://cvs.php.net/viewvc.cgi/php-src/ext/interbase/ibase_query.c?r1=1.30&r2=1.31
------------------------------------------------------------------------
[2007-04-09 19:46:13] aesthete at telecenter dot ru
Ok ... some statistic to php versions and this bug:
Linux (FC6):
linux stable php5.2.1.tar.bz2 - ok.
linux snap php5.2-200704091630.tar.bz2 - ok.
Windows XP sp2:
win32 stable php-5.2.1-Win32.zip - ok.
win32 snap php5.2-win32-200704091630.zip - BUG!!!
php.ini in all test was the same.
What about bug which I found: http://bugs.php.net/bug.php?id=34158
... Will it be corrected?
------------------------------------------------------------------------
[2007-04-09 07:48:31] tony2001@php.net
Please check if PHP 5.2.1 works for you.
There were several changes to sprintf() utilities and they might have
affected it.
------------------------------------------------------------------------
[2007-04-08 23:00:09] aesthete at telecenter dot ru
Description:
------------
I have some code:
...
$sth = ibase_query('SELECT GEN_ID(GEN_DOSTAVKA_ID,1) FROM
RDB$DATABASE');
$row = ibase_fetch_assoc($sth); // return only one row
$current_dostavka_id = $row['GEN_ID'];
echo $current_dostavka_id;
...
On my WinXP sp2 machine with snaped php5.2-win32-200704082030 the
ptinted value $current_dostavka_id is wrong and always the same:
%I64d
The right result must be: 7120, 7121, ... for each script execution.
On linux snap php5.2-200704082030.tar.bz2 everything ok.
On php-5.2.1-Win32 everything ok.
And what about bug which I found: http://bugs.php.net/bug.php?id=34158
... Will it be corrected?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41025&edit=1
Thread (7 messages)