Re: [PHP] PHP Bug Problems

From: Richard Baskett (rick_at_baskettcase.com)
Date: 10/05/03


Date: Sun, 05 Oct 2003 10:23:23 -0700
To: Jay Blanchard <jay.blanchard@niicommunications.com>, PHP General <php-general@lists.php.net>

on 10/2/03 7:00, Jay Blanchard at jay.blanchard@niicommunications.com wrote:

> [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.
>
> 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 :)
> [/snip]
>
> You said you looped - "I created a loop that assigned $x = 1; a whole bunch of
> times"
>
> But anyhow, I digress. We have several files that exceed 8000 (we try not to
> write them that big, but YMMV) lines of code that there are no problems with.
> My bet is that it has to do with memory amount and allocation, which would
> explain differences between yours and his.

Actually PHP.net released new code that fixed it.. enough OS X people were
commenting on it that they finally decided to research the problem and sure
enough they found the problem and fixed the problem. So it's all good.. I
had not run up against that line limit in any of my code, but apparently
there are packages out there that do include that many lines of code..
anyways it's fixed now so no worries.

Cheers!

Rick

"The flame of inspiration needs to be encouraged. Put a glass around that
small candle and protect it from discouragement or ridicule." - Mary Higgins
Clark



Relevant Pages

  • Re: [PHP] PHP Bug Problems
    ... My bet is that it would quit then too. ... > Yeah no crash because that's only a couple lines of code:) And yeah it ... but that didnąt crash anything.. ... those whom you do not admire; until you have formed the habit of looking for ...
    (php.general)
  • RE: [PHP] PHP Bug Problems
    ... Did you happen to try it with 8000+ repeated blocks of any ... My bet is that it would quit then too. ... Yeah no crash because that's only a couple lines of code:) And yeah it ...
    (php.general)
  • Re: [PHP] PHP Bug Problems
    ... on 10/2/03 5:12 AM, Jay Blanchard at jay.blanchard@niicommunications.com ... Yeah no crash because that's only a couple lines of code:) And yeah it ... The other is as though everything is a miracle." ...
    (php.general)
  • Re: AS3 Quit List - Very Old Fogies as of December 10, 2005
    ... they didn't think they could make it this far when they quit. ... yeah more. ... that word speaks castles. ... why do i think of rollercoasters when i think ...
    (alt.support.stop-smoking)
  • Re: AS3 Quit List - Very Old Fogies as of December 10, 2005
    ... i would bet that anyone listed around my name would say that they didn't think they could make it this far when they quit. ... yeah that means you too. ... as3 bs makes the quit stronger. ... why do i think of rollercoasters when i think ...
    (alt.support.stop-smoking)