From: aesthete at telecenter dot ru Operating system: Win XP sp2 PHP version: 5CVS-2007-04-08 (snap) PHP Bug Type: InterBase related Bug description: ibase_query(): Wrong result for SELECT GEN_ID(...)
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 bug report at http://bugs.php.net/?id=41025&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41025&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41025&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41025&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41025&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41025&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41025&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41025&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41025&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41025&r=support Expected behavior: http://bugs.php.net/fix.php?id=41025&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41025&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41025&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41025&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41025&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41025&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41025&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41025&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41025&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41025&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41025&r=mysqlcfg