#21481 [Opn->NoF]: mssql_close function don't close connection

From: Date: Tue, 20 May 2003 23:10:22 +0000
Subject: #21481 [Opn->NoF]: mssql_close function don't close connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40097@lists.php.net to get a copy of this message
ID: 21481 Updated by: fmk@php.net Reported By: pvy at novosoft dot ru -Status: Open +Status: No Feedback Bug Type: MSSQL related Operating System: windows 2000/sp3 PHP Version: 4CVS-2003-01-07 (stable) Previous Comments: ------------------------------------------------------------------------ [2003-01-08 20:42:18] fmk@php.net dbclose is called indirectly when the link is destroyed (_close_mssql_link and _close_mssql_plink). Setting mssql.allow_persistent to off indicates that you are using the mssql_pconnect function and not the mssql_connect. ------------------------------------------------------------------------ [2003-01-08 03:21:16] pvy at novosoft dot ru Please, tell me, where in function mssql_close is dbclose call for really close connection to database? vladimir. ------------------------------------------------------------------------ [2003-01-08 03:20:04] pvy at novosoft dot ru Sorry, this is my mistype. in my test script all was fine. and, also, I reopen this bug report. When 25 connections was reached, no new connection will open. Then I change option "allow persistant" to Off in php.ini. All working fine. I assume this is not a bogus, this is a bug. ------------------------------------------------------------------------ [2003-01-07 05:48:56] nicos@php.net A little comment to let pvy@novosoft.ru knows that his script is bogus: <? $db=mssql_connect("server","user","pass"); mssql_close("db"); ?> should be <? $db=mssql_connect("server","user","pass"); mssql_close($db); ?> Thank you for your report. ------------------------------------------------------------------------ [2003-01-07 05:43:01] georg@php.net In the db extensions connections will be closed via destructor functions, which will be called when zend_list_delete is executed: see: PHP_MINIT_FUNCTION and _close_[extname]_link ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21481 -- Edit this bug report at http://bugs.php.net/?id=21481&edit=1

« previous php.bugs (#40097) next »