diff options
author | Frank M. Kromann <fmk@php.net> | 2005-11-18 19:14:32 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2005-11-18 19:14:32 +0000 |
commit | da2d7e7229c15b92eecc6a5c9a41eedf2d1c4d30 (patch) | |
tree | 0a01432afc32ccc7abd4a32c064a6562e3aa22d8 | |
parent | 110344d65ce1571c591cbefc3247b35595eae390 (diff) | |
download | php-git-da2d7e7229c15b92eecc6a5c9a41eedf2d1c4d30.tar.gz |
MFH: Fix #33153 Crash in mssql_next_result().
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | ext/mssql/php_mssql.c | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,7 @@ PHP NEWS ?? Nov 2005, PHP 5.1 - Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module). (Ilia) - Fixed bug #35273 (Error in mapping soap - java types). (Dmitry) +- Fixed bug #33153 (crash in mssql_next result). (Frank) 17 Nov 2005, PHP 5.1 Release Candidate 6 - Changed function parameter parsing to handle integers in a non-strict fashion diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index b70ad402ac..189ec7b7b4 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -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; } |