#20251 [Bgs->Opn]: Can't assign values to array in loop.

From: Date: Tue, 05 Nov 2002 00:50:59 +0000
Subject: #20251 [Bgs->Opn]: Can't assign values to array in loop.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-24076@lists.php.net to get a copy of this message
ID: 20251 Updated by: nicos@php.net Reported By: director@misny.com -Status: Bogus +Status: Open Bug Type: Arrays related Operating System: linux 2.4.7-10enterprise #1 SMP PHP Version: 4.2.1 New Comment: ilia said it was reproductile with any values larger than 66000 Previous Comments: ------------------------------------------------------------------------ [2002-11-04 18:50:47] director@misny.com I apologize if you think this is not the appropriate place, but I had confered with a couple of other developers who experienced the same problem when this was run, so I figured it was a php bug. I'll do more research (trying it on windows, maybe) and see what I come up with. Sorry to waste your time. ------------------------------------------------------------------------ [2002-11-04 18:43:24] nicos@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-11-04 18:38:04] director@misny.com 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 this bug report at http://bugs.php.net/?id=20251&edit=1

« previous php.bugs (#24076) next »