Bug #16320: Array Problem

From: Date: Wed, 27 Mar 2002 21:46:03 +0000
Subject: Bug #16320: Array Problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3524@lists.php.net to get a copy of this message
From: nm52@uwrf.edu Operating system: Linux 2.2.12-20 Redhat 6.1 PHP version: 4.1.1 PHP Bug Type: MySQL related Bug description: Array Problem 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 -- Edit bug report at http://bugs.php.net/?id=16320&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16320&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16320&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16320&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16320&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16320&r=support Expected behavior: http://bugs.php.net/fix.php?id=16320&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16320&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16320&r=submittedtwice

« previous php.bugs (#3524) next »