#48723 [Com]: mssql_close($res) do not actually close connection

[email protected] ("sjoerd-php at linuxonly dot nl")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               48723
 Comment by:       sjoerd-php at linuxonly dot nl
 Reported By:      andrey at djhd dot com
 Status:           Open
 Bug Type:         MSSQL related
 Operating System: XP SP2
 PHP Version:      5.2.10
 New Comment:

Thank you for your bug report.

How did you determine that the connection was not closed?


Previous Comments:
------------------------------------------------------------------------

[2009-06-29 17:59:46] andrey at djhd dot com

Description:
------------
I have persistent connections turned off.
mssql_close will not close connection if it was opened with resource
link.
If no resource link and everything by default then everything ok.

Reproduce code:
---------------
$link1 = mssql_connect ($servername,"sa","pass",1);
mssql_close ($link1);
sleep (1000);


Expected result:
----------------
I expect that it will disconnect and then sleep

Actual result:
--------------
It disconnects only on exit from the script.

The following works:

mssql_connect ($servername,"sa","moyadatabase",1);
mssql_close ();
sleep (1000);



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48723&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.