ID:               45373
 Comment by:       lester at lsces dot co dot uk
 Reported By:      max_wer at ukr dot net
 Status:           Open
 Bug Type:         InterBase related
 Operating System: Windows XP SP2
 PHP Version:      5.2.6
 New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2008-06-27 06:36:26] max_wer at ukr dot net

Description:
------------
php crash
where 
  count(params in ibase_execute()) > count(params in SQL-string) and
  query-type is not SELECT


Reproduce code:
---------------
$db  = ibase_connect('127.0.0.1:employee','sysdba','masterkey');
$sql = 
"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/**/);

ibase_rollback($t);
ibase_close($db);

Expected result:
----------------
must be error message



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45373&edit=1

Reply via email to