note 48414 deleted from function.ibase-close by felipe

From: Date: Thu, 03 Jan 2008 02:11:08 +0000
Subject: note 48414 deleted from function.ibase-close by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134702@lists.php.net to get a copy of this message
Note Submitter: php dot planetmirror dot com at issystems dot co dot nz ---- 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);

« previous php.notes (#134702) next »