Written by George Andre P.
I think there is a bug in PHP. However I need to confirm it on large basis. The bellow code should crash the latest version of PHP on Windows 2000 Pro Systems. I have tested it on 2 Systems thus far and it has crashed PHP on both. If some of you could run this code on your systems and just verify this I would much appreciate it. Try to run in on non-NT based systems. The code generates a 2D array that is of size 200000. 1D array of the same size works fine.
Thank you all.
Code: ---------------------------------------------------------------------------
<?php
$lcv = 0;
while ($lcv < 1) {
$new[] = $lcv;
$lcv ++;
}
$lcv = 0;
while ($lcv < 200000) {
$result[] = $new_;
$lcv ++;
}
//echo $lcv . "\n";
?>