Re: [PHP] PHP Bug Problems
From: Richard Baskett (rick_at_baskettcase.com)
Date: 10/05/03
- Next message: Jason Wong: "Re: [PHP] .htaccess - Still asking for login information although already sent through address bar"
- Previous message: Susan Ator: "RE: [PHP] File read and sort question"
- In reply to: Jay Blanchard: "RE: [PHP] PHP Bug Problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jason Wong: "Re: [PHP] .htaccess - Still asking for login information although already sent through address bar"
- Previous message: Susan Ator: "RE: [PHP] File read and sort question"
- In reply to: Jay Blanchard: "RE: [PHP] PHP Bug Problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|