From: sailormax at inbox dot lv
Operating system: Win32 / Linux
PHP version: 5.2.0
PHP Bug Type: InterBase related
Bug description: invalid statement handle in Unknown on line 0
Description:
------------
PHP output warning:
Warning: Unknown: invalid statement handle in Unknown on line 0
if don't use "connection_id" as parameter for function ibase_close()
Firebird 2.0 Release Candidate
Reproduce code:
---------------
<?
ibase_connect("localhost:D:\\test.gdb", "SYSDBA", "masterkey");
$prep = ibase_prepare("SELECT * FROM TB_TEST");
$res = ibase_execute($prep);
while ($row = ibase_fetch_row($res))
{
print_r($row);
print "<br />";
}
ibase_close();
?>
Expected result:
----------------
output list of data in table
Actual result:
--------------
output list of data in table
and
Warning: Unknown: invalid statement handle in Unknown on line 0
--
Edit bug report at http://bugs.php.net/?id=39397&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39397&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39397&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39397&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39397&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39397&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39397&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39397&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39397&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39397&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39397&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39397&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39397&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39397&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39397&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39397&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39397&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39397&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39397&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39397&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39397&r=mysqlcfg