note 81577 added to function.oci-free-statement

From: Date: Tue, 04 Mar 2008 16:46:43 +0000
Subject: note 81577 added to function.oci-free-statement
Groups: php.notes 
Request: Send a blank email to php-notes+get-136737@lists.php.net to get a copy of this message
If you are using cursors, make sure to free the statement *and* the cursor, especially if there is a possibility of running the proc/cursor again (e.g. with different parameters). <?php oci_execute($stmt); oci_execute($crsr); // iterate through cursor... oci_free_statement($stmt); oci_free_statement($crsr); ?> You need to do it explicitly, closing connection for example does not seem to release the cursor. ---- Server IP: 64.71.164.2 Probable Submitter: 38.112.47.130 ---- Manual Page -- http://www.php.net/manual/en/function.oci-free-statement.php Edit -- https://master.php.net/note/edit/81577 Del: integrated -- https://master.php.net/note/delete/81577/integrated Del: useless -- https://master.php.net/note/delete/81577/useless Del: bad code -- https://master.php.net/note/delete/81577/bad+code Del: spam -- https://master.php.net/note/delete/81577/spam Del: non-english -- https://master.php.net/note/delete/81577/non-english Del: in docs -- https://master.php.net/note/delete/81577/in+docs Del: other reasons-- https://master.php.net/note/delete/81577 Reject -- https://master.php.net/note/reject/81577 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136737) next »