php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25998 mysql_fetch_array display nothing over 530 records
Submitted: 2003-10-27 04:16 UTC Modified: 2003-10-27 06:35 UTC
From: hsutanto78 at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.3 OS: WinXP
Private report: No CVE-ID: None
 [2003-10-27 04:16 UTC] hsutanto78 at hotmail dot com
Description:
------------
There was nothing wrong when I executed this script at first.  But after I added the data more than 500 records, it only display nothing.  I tried to retrieve the data through shell command, and no problem.  is it PHP bug?? Thanks in advance.

Reproduce code:
---------------
$strQuery = "SELECT * FROM cust_data";
$result = mysql_query($strQuery) or Die("QUERY FAILED");

while($line=mysql_fetch_array($result,MYSQL_ASSOC)){
    $array[]=$line;
    print_r($array);
}


Expected result:
----------------
Array([0]Array([id]=00001, [name]=John.....
Array([1]Array([id]=00002, [name]=....

Actual result:
--------------
1
1
1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-27 05:35 UTC] hsutanto78 at hotmail dot com
I just found it.   When I viewed the source, I found that all of the data were correctly retrieved already.  It just doesn't displayed correctly in the browser.  might caused by lack of memory.  

It's not PHP bug. ^^
 [2003-10-27 06:35 UTC] georg@php.net
cnaged status -> Bogus 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC