From: Frank M. Kromann Date: Tue, 3 Dec 2002 18:07:57 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC3~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5454f01e04d0698f1135685b7e427d51520d02ec;p=php MFH # Bug #17593 # Make sure any pending data is released from the server when freeing the result --- diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 15587206a9..3522f4d287 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -1112,6 +1112,8 @@ PHP_FUNCTION(mssql_free_result) } ZEND_FETCH_RESOURCE(result, mssql_result *, mssql_result_index, -1, "MS SQL-result", le_result); + if (dbdataready(result->mssql_ptr->link)) + dbresults(result->mssql_ptr->link); zend_list_delete(Z_LVAL_PP(mssql_result_index)); RETURN_TRUE; }