PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

oci_internal_debug> <oci_field_type
Last updated: Fri, 04 Jul 2008

view this page in

oci_free_statement

(PHP 5, PECL oci8:1.1-1.2.4)

oci_free_statement — Gibt alle verknüpften Ressourcen eines Statements oder Zeigers frei.

Beschreibung

bool oci_free_statement ( resource $statement )

Bibt alle verknüpften Ressourcen eines Oracle-Statements oder -Zeigers frei, die durch das Ergebnis von oci_parse() zugewiesen oder von Oracle eingeholt wurden.

Parameter-Liste

statement

Ein gültiger Zeiger auf ein OCI-Statement.

Rückgabewerte

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.



add a note add a note User Contributed Notes
oci_free_statement
rada at instinctive dot it
04-Mar-2008 08:46
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.

oci_internal_debug> <oci_field_type
Last updated: Fri, 04 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites