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:
1
NEWS
1
NEWS
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user