|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-02 17:55 UTC] derick@php.net
[2005-02-21 19:57 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
Description: ------------ I executed mssql_query("...", $db, 50). The result was empty (no rows returned), and there was a read from 0x00000000 when (I think) mssql_fetch_assoc() executed. Reproduce code: --------------- I had no time to record the exact code, but it was something like this: $q=mssql_query("select * from table", $db, 50); do { while ($row=mssql_fetch_assoc($q)) { ... } } while (mssql_fetch_batch($q)>0); the table was empty. I then prepended if (mssql_num_rows($q)>0) and everything was fine. Expected result: ---------------- nothing, the table was empty :) Actual result: -------------- a crash because of reading 0x00000000