From: Frank M. Kromann Date: Tue, 3 Dec 2002 18:04:35 +0000 (+0000) Subject: Bug #17593 X-Git-Tag: RELEASE_1_0b3~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5eaf2d10e7ef238e9a7904a36ccf2b241dca5faa;p=php 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; }