php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16320 Array Problem
Submitted: 2002-03-27 16:46 UTC Modified: 2002-05-26 13:48 UTC
From: nm52 at uwrf dot edu Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.1.1 OS: Linux 2.2.12-20 Redhat 6.1
Private report: No CVE-ID: None
 [2002-03-27 16:46 UTC] nm52 at uwrf dot edu
When generating large arrays (> 15,000 places) by copying mysql result rows php will not die after script exicution. I found this in running a large while loop and then copying over the row from the fetch_assoc that comes back. So for example

$query = select * from users; //about 20,000 rows with 26 
                              //data elements.
$result = mysql_query(......);

while($row = mysql_fetch_assoc($result)){
 $users[$row["user_name"]] = $row;
}

This is from a command line script and when this is run, this will run every line to the bottom of the script but will not die. I have even kept adding print statements and it will exicute them, but will not stop. I have checked this with many scenarios and when the array is too large the application will not terminate. When i downloaded the new 4.2rc1 this problem isnt there though. Just thought you guys should know. Thanks alot,

Nick Miller

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 13:48 UTC] derick@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 10:01:33 2024 UTC