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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hsutanto78 at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Fri Dec 27 02:01:29 2024 UTC