From: [EMAIL PROTECTED] Operating system: linux 2.4.7-10enterprise #1 SMP PHP version: 4.2.1 PHP Bug Type: Arrays related Bug description: Can't assign values to array in loop.
I can't get values assigned to arrays inside a loop when loop repetition is high. <? $a=80000; $b=1; for($i=0; $i<$a; $i++){ $c[$i]=$b; } echo count($c); ?> Sometimes, this will run, sometimes, it won't. Cutoff of at what number $a this script works varies. Sometimes, it works when $a=70000, sometimes it won't. This is with using (8)Xeon 700-2 processors with 2GB RAM on a very busy apache/php only server. On our test machine (doing nothing) with (2) P4-1000 processors, $a= can be as high as 130000. Am I just missing something? Configure command: './configure' '--with-mysql=../mysql' '--with-apache=../apache_1.3.24' '--enable-track-vars' '--enable-mbstring' -- Edit bug report at http://bugs.php.net/?id=20251&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20251&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20251&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20251&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20251&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20251&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20251&r=support Expected behavior: http://bugs.php.net/fix.php?id=20251&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20251&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20251&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20251&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20251&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20251&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20251&r=isapi