Bug #14039 Updated: Invalid statement handle
| From: | daniela@php.net | Date: | Sat, 13 Apr 2002 18:38:00 +0000 |
| Subject: | Bug #14039 Updated: Invalid statement handle | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4906@lists.php.net to get a copy of this message | ||
ID: 14039
Updated by: daniela@php.net
Reported By: opolette@yahoo.com
-Status: Open
+Status: Closed
Bug Type: InterBase related
Operating System: Windows NT 4 SP 4
PHP Version: 4.0.6
New Comment:
The version of PHP that this bug was reported in is too old.
Please try the php-4.2.0RC3 from http://www.php.net/~derick/
If you are still able to reproduce the bug, please change the PHP
version on this bug report to the version you tested and change
the status back to "Open".
This bug should be fixed now.
You were right, the problem was in ibase_close().
However have a look at:
http://www.php.net/manual/en/function.ibase-close.php
Daniela
Previous Comments:
------------------------------------------------------------------------
[2001-11-13 04:41:52] opolette@yahoo.com
When exiting a function after having closed a link to Interbase, the
warning "Invalid statement handle" is displayed. apparently, PHP tries
to close the connection by itself even if it has already been closed,
which raises this warning from interbase.
Example :
<?php
function foo() {
$link = ibase_connect("//ibase/mybase", "login",
"password");
.... // some code here
ibase_close ($link);
return -1; // generates the warning
}
$x = foo(); // warning displayed
>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14039&edit=1