note 48414 added to function.ibase-close
| From: | php dot planetmirror dot com at issystems dot co dot nz | Date: | Wed, 22 Dec 2004 21:38:15 +0000 |
| Subject: | note 48414 added to function.ibase-close | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82187@lists.php.net to get a copy of this message | ||
In the preceding note,
$sth = ibase_query($dbh, $stmt);
^^^^ this is a query (or statement handle)
while ($row = ibase_fetch_object($sth)) {
^^^^ this is a result
So the end is wrong, because $sth isn't a result
ibase_free_result($sth); // <-------
ibase_close($dbh);
It should really read as follows:
ibase_free_result($row);
ibase_free_query($sth);
ibase_close($dbh);
----
Manual Page -- http://www.php.net/manual/en/function.ibase-close.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48414
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48414&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48414&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48414&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48414&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48414&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48414&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48414&report=yes
Search -- http://master.php.net/manage/user-notes.php