fmk Tue Dec 3 13:07:58 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/mssql php_mssql.c Log: MFH # Bug #17593 # Make sure any pending data is released from the server when freeing the result Index: php4/ext/mssql/php_mssql.c diff -u php4/ext/mssql/php_mssql.c:1.86.2.1 php4/ext/mssql/php_mssql.c:1.86.2.2 --- php4/ext/mssql/php_mssql.c:1.86.2.1 Tue Dec 3 11:09:14 2002 +++ php4/ext/mssql/php_mssql.c Tue Dec 3 13:07:57 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mssql.c,v 1.86.2.1 2002/12/03 16:09:14 edink Exp $ */ +/* $Id: php_mssql.c,v 1.86.2.2 2002/12/03 18:07:57 fmk Exp $ */ #ifdef COMPILE_DL_MSSQL #define HAVE_MSSQL 1 @@ -1112,6 +1112,8 @@ } 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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php