ID: 32143 Updated by: [EMAIL PROTECTED] Reported By: sandell at winwap dot com -Status: Open +Status: Assigned Bug Type: InterBase related Operating System: Windows XP SP2 PHP Version: 5CVS-2005-03-01 -Assigned To: +Assigned To: abies
Previous Comments: ------------------------------------------------------------------------ [2005-03-01 09:18:37] sandell at winwap dot com 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 this bug report at http://bugs.php.net/?id=32143&edit=1