fmk Tue Dec 3 13:04:35 2002 EDT Modified files: /php4/ext/mssql php_mssql.c Log: 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.87 php4/ext/mssql/php_mssql.c:1.88 --- php4/ext/mssql/php_mssql.c:1.87 Tue Dec 3 00:56:39 2002 +++ php4/ext/mssql/php_mssql.c Tue Dec 3 13:04:35 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_mssql.c,v 1.87 2002/12/03 05:56:39 fmk Exp $ */ +/* $Id: php_mssql.c,v 1.88 2002/12/03 18:04:35 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