Hi,
Here is a simple php code, which opens a Db connection with oracle database gets the systemdate and closes the connection.
After closing the connection it tries to perform some database operation, and it works also!!!
IS it a bug/ or its implemented that ways only???
<?php
$sql="select sysdate as mdate from dual";
$con = OCIlogon("scott","tiger");
$stmt = OCIParse($con,$sql);
OCIDefineByName($stmt,"MDATE",&$mdate);
OCIExecute($stmt);
OCIFetch($stmt);
OCIFreestatement($stmt);
OCILogoff($con);
//i logged off here...
//still i m using the same connection id.
$stmt = OCIParse($con,$sql);
OCIDefineByName($stmt,"MDATE",&$ndate);
OCIExecute($stmt);
OCIFetch($stmt);
echo "<br><b>After logoff date=>$ndate</b>";
echo "$con";
//but it works !!
//then whats the functionality of ocilogoff ???
?>