|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-07 02:06 UTC] mlaukast1 at hotmail dot com
Hello! I call mssql_close function for close connection but, as I see in php_mssql.c file this function do nothing (ie don't really closes connection) see code: ZEND_FETCH_RESOURCE2(mssql_ptr, mssql_link *, mssql_link_index, id, "MS SQL-Link", le_link, le_plink); if (mssql_link_index) zend_list_delete(Z_LVAL_PP(mssql_link_index)); else zend_list_delete(id); RETURN_TRUE; where is dbclose and dbfreelogin staments? vladimir Novosibirsk, Russia PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
And also: If I create file like this: <? $db=mssql_connect("server","user","pass"); mssql_close("db"); ?> and run it a lot of times, after 25 times I got message "unable connect to server" from mssql_connect when I go to mssql entreprise manager I will see 25 connections from PHP. If I restart apache all connections will be closed. PS: I use apache 1.3.27/w32 Same behavior with all databases, as I understand, there is another childs logic instead unix. Waiting for commentsA 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.