From: andrey at djhd dot com Operating system: XP SP2 PHP version: 5.2.10 PHP Bug Type: MSSQL related Bug description: mssql_close($res) do not actually close connection
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 bug report at http://bugs.php.net/?id=48723&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48723&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48723&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48723&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48723&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48723&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48723&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48723&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48723&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48723&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48723&r=support Expected behavior: http://bugs.php.net/fix.php?id=48723&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48723&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48723&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48723&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48723&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48723&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48723&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48723&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48723&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48723&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48723&r=mysqlcfg