From: sandell at winwap dot com Operating system: Windows XP SP2 PHP version: 5CVS-2005-03-01 (dev) PHP Bug Type: InterBase related Bug description: ibase_query() causes IB server crash with invalid DB and parameters
Description: ------------ ibase_query() causes a Interbase Server crash if an invalid DB handle is used and parameters are passed in the function. There must be an existing DB connection opened with ibase_connect(). System info (All on same machine): - Windows XP SP2 - Apache 2.0.50 - PHP 5.1.0-DEV (Downloaded 1.3.2005) - Interbase Server WI-V7.1.0.192 Reproduce code: --------------- // Crash Code $db = ibase_connect($dbname,'SYSDBA','masterkey','None',0,3); $sql = "SELECT * FROM aTable WHERE Status = ?"; $sth = ibase_query($db_hand, $sql, 0 ); // <- THIS LINE CRASHES IB SERVER (Note $db_hand variable) ibase_close($db); Expected result: ---------------- function should fail with an error reported to the log Actual result: -------------- Interbase Server crashes -- Edit bug report at http://bugs.php.net/?id=32143&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32143&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32143&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32143&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32143&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32143&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32143&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32143&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32143&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32143&r=support Expected behavior: http://bugs.php.net/fix.php?id=32143&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32143&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32143&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32143&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32143&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32143&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32143&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32143&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32143&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32143&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32143&r=mysqlcfg