ID: 20251 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Won\'t fix Bug Type: Arrays related Operating System: linux 2.4.7-10enterprise #1 SMP PHP Version: 4.2.1 New Comment:
In ZE1 use array_fill() to fill in an array with the same value, it'll be faster and work. In ZE2 your code will work fine as is, still array_fill() would probably be a better alternative. Previous Comments: ------------------------------------------------------------------------ [2002-11-04 19:23:34] [EMAIL PROTECTED] Okay, Please join a gdb backtrace. ------------------------------------------------------------------------ [2002-11-04 19:12:02] [EMAIL PROTECTED] The following works in place of array, so I'll try and see how much memory and CPU this uses. <? $a=1000000; for($i=0; $i<$a; $i++){ $d="ar".$i; $$d=$i; } echo $ar5943; ?> ------------------------------------------------------------------------ [2002-11-04 18:50:58] [EMAIL PROTECTED] ilia said it was reproductile with any values larger than 66000 ------------------------------------------------------------------------ [2002-11-04 18:50:47] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20251 -- Edit this bug report at http://bugs.php.net/?id=20251&edit=1