|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-01 23:28 UTC] waldschrott@php.net
[2000-08-20 01:52 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
Sample code <? print "Oracle_Home: " . getenv("ORACLE_HOME") . "<BR>"; /* If you change the OCILogon to OCIPLogon, no memory leak! */ if($conn = OCILogon("<user>","<pwd>","<TNS>")) { print("Connection succeeded!<BR>"); $stmt = OCIParse($conn,"select * from all_tables"); OCIExecute($stmt); /* Notice I'm not getting any row or column information back... */ OCIFreeStatement($stmt); OCILogoff($conn); } else { print("Connection failed!<BR>"); } ?> Note: I am running a smp kernel (two 550 PIIIs) php was compiled with: --with-mysql --with-oci8 --enable-track-vars I tracked it as far as the OCIServerDetach call in oci8.c...the memory is not released after this call is made, and there is no error...