1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00

Fix #33153 Crash in mssql_next_result().

This commit is contained in:
Frank M. Kromann
2005-11-18 19:13:35 +00:00
parent 85fb03cbae
commit 14889ccfbd
2 changed files with 6 additions and 0 deletions

1
NEWS
View File

@@ -26,3 +26,4 @@ PHP NEWS
- Added possibility to check in which extension an internal function was
defined using reflection API. (Johannes)
- Fixed bug #34286 (__toString() behavior is inconsistent). (Marcus)
- Fixed bug #33153 (crash in mssql_next result). (Frank)

View File

@@ -1865,6 +1865,11 @@ PHP_FUNCTION(mssql_next_result)
mssql_ptr = result->mssql_ptr;
retvalue = dbresults(mssql_ptr->link);
while (dbnumcols(mssql_ptr->link) <= 0 && retvalue == SUCCEED) {
retvalue = dbresults(mssql_ptr->link);
}
if (retvalue == FAIL) {
RETURN_FALSE;
}