From: Frank M. Kromann Date: Thu, 9 Jan 2003 08:19:41 +0000 (+0000) Subject: Use the correct link when checking for more results on stored procedures X-Git-Tag: PHP_5_0_dev_before_13561_fix~366 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b33fe2b2c61c16b12b7b19d760c97c95f790244d;p=php Use the correct link when checking for more results on stored procedures --- diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index 8993609d2a..a3677a4710 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -2112,7 +2112,7 @@ PHP_FUNCTION(mssql_free_statement) ZEND_FETCH_RESOURCE(statement, mssql_statement *, mssql_statement_index, -1, "MS SQL-statement", le_statement); /* Release remaining results */ do { - retvalue = dbresults(statement->link); + retvalue = dbresults(statement->link->link); } while (retvalue != NO_MORE_RESULTS && retvalue != FAIL); zend_list_delete(Z_RESVAL_PP(mssql_statement_index));