note 119624 added to function.db2-free-stmt

From: Date: Tue, 19 Jul 2016 19:29:24 +0000
Subject: note 119624 added to function.db2-free-stmt
Groups: php.notes 
Request: Send a blank email to php-notes+get-206055@lists.php.net to get a copy of this message
Update: as of version 1.9.2, db2_free_stmt() was not only deprecated, but its functionality removed completely. It returns TRUE but does nothing. Instead of db2_free_stmt(), use the aforementioned $stmt = ''; to trigger the statement's destructor. It is advised to destroy the statement resource in this way if the statement variable is later re-used with another db2_prepare in the same request. Example: $stmt = db2_prepare($conn, $sql1); // more code goes here $stmt = ''; // destroy statement resource before assigning another statement to the same variable. $stmt = db2_prepare($conn, $sql2); ---- Server IP: 72.52.91.14 Probable Submitter: 66.27.61.130 ---- Manual Page -- http://php.net/manual/en/function.db2-free-stmt.php Edit -- https://master.php.net/note/edit/119624 Del: integrated -- https://master.php.net/note/delete/119624/integrated Del: useless -- https://master.php.net/note/delete/119624/useless Del: bad code -- https://master.php.net/note/delete/119624/bad+code Del: spam -- https://master.php.net/note/delete/119624/spam Del: non-english -- https://master.php.net/note/delete/119624/non-english Del: in docs -- https://master.php.net/note/delete/119624/in+docs Del: other reasons-- https://master.php.net/note/delete/119624 Reject -- https://master.php.net/note/reject/119624 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206055) next »