Re: PHP Bug Problems
| From: | Richard Baskett | Date: | Thu, 02 Oct 2003 13:52:38 +0000 |
| Subject: | Re: PHP Bug Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164739@lists.php.net to get a copy of this message | ||
on 10/2/03 5:12 AM, Jay Blanchard at jay.blanchard@niicommunications.com
wrote:
> [snip]
>
> So I tried it out.. at first I created a loop that assigned $x = 1; a whole
> bunch of times, but that didn¹t crash anything.. .. 7996
>
> Well to make an already long story short.. it looks like after a couple of
> hours bugs.php.net has removed my post.
>
> My question to you is.. is there any reason why they would remove my post?
> [/snip]
>
> Because it is not a bug, it is bad code design! 8000+ lines of $x = 1; is just
> downright goofy! Did you happen to try it with 8000+ repeated blocks of any
> other type? My bet is that it would quit then too.
> :)
>
> <?php
>
> $i = 0;
>
> while($i < 12000){
> $x = 1;
> $i++;
> }
> echo $x . "\n";
> ?>
>
> No crash.
Yeah no crash because that's only a couple lines of code :) And yeah it
doesn¹t matter what you have in there just as long as you have that many
lines..
I didn't try include files, but apparently that counts as lines of codes
also.. so 8000+ total lines.. I agree, but it does crash and apparently the
guy that found the bug does write that many lines of code.. don't ask me.. I
don't know why :)
Rick
"There are only two ways to live your life. One is as though nothing is a
miracle. The other is as though everything is a miracle." - Albert Einstein