php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39397 invalid statement handle in Unknown on line 0
Submitted: 2006-11-06 10:50 UTC Modified: 2007-11-08 19:46 UTC
Votes:9
Avg. Score:4.4 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:4 (44.4%)
Same OS:5 (55.6%)
From: sailormax at inbox dot lv Assigned:
Status: Closed Package: InterBase related
PHP Version: 5.2.0 OS: Win32 / Linux
Private report: No CVE-ID: None
 [2006-11-06 10:50 UTC] sailormax at inbox dot lv
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-08 19:46 UTC] lwe@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in HEAD and PHP_5_3
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 19:01:27 2024 UTC