go to bug id or search bugs for
count(params in ibase_execute()) > count(params in SQL-string) and
query-type is not SELECT
$db = ibase_connect('127.0.0.1:employee','sysdba','masterkey');
"update country set currency = ? where country = ? returning country, currency";/**/
/*"select * from country where country = ? and currency = ?"; /**/
$t = ibase_trans(IBASE_WRITE);
$q = ibase_prepare($db,$t,$sql);
$r = ibase_execute($q,'USA','Dollar'/*!!!With three param SELECT-OK UPDATE-CRASH*/ ,0/**/);
must be error message
Add a Patch
Add a Pull Request
I can confirm this is happening, but I also get a crash with the select rather than just update.
Unable to modify the SQL 'NOT' to give a crash - which is what I would probably expect since only the number of parameters matter not how they are used.
Firebird 2.0 and PHP5.2.5
I beg pardon. I was, probably, inattentive. SELECT query PHP crash too.
PHP 5.2.6 FIREBIRD 2.1.0
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.
Fixed in 5.2, 5.3 and HEAD.