Usually closing a connection is simply done by oci_close($connection);
or in a worse case when the php script ends the connection pass away.
In my case however, I face a different behavior.
If I access my application which uses PHP 5.2.8, Apache 2.2.11 and oci8 1.2.5, the connection is kept during several minutes.
Actually it seems to: if I launch netstat -b
I see that the process httpd.exe
remains with the ESTABLISHED
status on the database's URL during a while (a few minutes).
Could someone enlighten me on that behavior?
P.S. I do not use persistent connections.
P.P.S. As asked here is the code used to connect and close (this is a legacy application):
connection: a function is called whose connection related code is $connection = @ocilogon ( "$username", "$password", "$database" );
closing: responsability of every pages we develop but typically it'd be oci_close($connection)