|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41025 ibase_query(): Wrong result for SELECT GEN_ID(...)
Submitted: 2007-04-08 23:00 UTC Modified: 2007-04-16 09:24 UTC
From: aesthete at telecenter dot ru Assigned: helly (profile)
Status: Closed Package: InterBase related
PHP Version: 5CVS-2007-04-08 (snap) OS: Win XP sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
35 - 34 = ?
Subscribe to this entry?

 [2007-04-08 23:00 UTC] aesthete at telecenter dot ru
I have some code:

$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:

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: ... Will it be corrected?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-09 07:48 UTC]
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-09 19:46 UTC] 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           - ok.
win32 snap - BUG!!!

php.ini in all test was the same.

What about bug which I found:
... Will it be corrected?
 [2007-04-12 22:01 UTC]
Please try using this CVS snapshot:
For Windows:

 [2007-04-15 23:20 UTC] aesthete at telecenter dot ru
Testing results:

php5.2-latest.tar.gz        Ok     Ok

php.ini in all test was the same.

What about bug which I found:
... Tony can you apply my patch ? ... )))
 [2007-04-16 09:24 UTC]
Great, marking as closed then.

>Tony can you apply my patch ? ... )))
I'm still waiting for an answer from the current ext/interbase maintainer.
This line seems to be there for a reason and just commenting it out is wrong (commenting out something can't be correct anyway, especially using C++ comments in C code. If you need to remove something - remove it, no need to leave it commented).
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Aug 16 08:05:45 2022 UTC