#25998 [Opn->Bgs]: mysql_fetch_array display nothing over 530 records
| From: | georg@php.net | Date: | Mon, 27 Oct 2003 11:35:28 +0000 |
| Subject: | #25998 [Opn->Bgs]: mysql_fetch_array display nothing over 530 records | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49509@lists.php.net to get a copy of this message | ||
ID: 25998
Updated by: georg@php.net
Reported By: hsutanto78 at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: WinXP
PHP Version: 4.3.3
New Comment:
cnaged status -> Bogus
Previous Comments:
------------------------------------------------------------------------
[2003-10-27 05:35:57] 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 04:16:14] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25998&edit=1