Date: 10/11/00
- Next message: Derick Rethans: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7080 Updated: Recusive Include()s crash system"
- Previous message: Sean Farley: "[PHP-DEV] IMAP patch"
- Next in thread: Derick Rethans: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7080 Updated: Recusive Include()s crash system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Under Windows PHP handles stack overflows. UNIX is an older operating
system and doesn't give you anyway that I know of to really cope and
recover from stack overflows.
We have discussed putting a limit on recursive include()'s in the past but
it would mean adding code and an arbitrary limit (which would be quite
meaningless) to the execution function.
Andi
At 05:00 PM 10/10/00 -0700, Harold Paulson wrote:
>Hi,
>
>I just wanted to follow up on this a bit..
>
>Your first point is quite correct. I have indeed set resource limits for
>apache (and every other daemon I'm running). The limits that were set by
>default on my box were infinite. Yes, it is my fault that I didn't know
>this and fix it beforehand, but how often is it the case? How many of the
>web servers out there are set up similarly? Most of them, I would
>suspect, have this defect, since it's the default in at least FreeBSD and
>RedHat. This is their problem, and I think they should fix it, but we
>must admit that it is the status quo of the web today.
>
>
>In reference to your second suggestion, include_once() is neat, I'll start
>using it, but...I can't be the only sysadmin who isn't the sole developer
>on his server?
>
>I think PHP would be a more stable tool if maybe it featured an
>'include_limit' directive in php.ini, or somesuch. I can imagine
>situations where a developer might want to include a file more than once,
>but...more than a thousand times?
>
>Thanks for your time.
>
> - H
>
>
>
>On 10 Oct 2000, Bug Database wrote:
>
> > ID: 7080
> > Updated by: stas
> > Reported By: haroldp <email protected>
> > Status: Closed
> > Bug Type: Reproduceable crash
> > Assigned To:
> > Comments:
> >
> > First of all, you probably need to use resource limits. Second, you
> have include_once for this - use it.
> >
> > Previous Comments:
> > ---------------------------------------------------------------------------
> >
> > [2000-10-07 20:36:26] haroldp <email protected>
> > Include()ing a file that Include()s itself - ie, a recusive
> > Include() - will completely crash a system. Not just the
> > web server, it ran my box out of swap in a few seconds
> > and required a power cycle.
> >
> > Could we get some sanity checking on this? I had a
> > web designer's *typo* bring a ssytem to its knees.
> >
> >
> >
> > ---------------------------------------------------------------------------
> >
> >
> > Full Bug description available at: http://bugs.php.net/?id=7080
> >
> >
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Derick Rethans: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7080 Updated: Recusive Include()s crash system"
- Previous message: Sean Farley: "[PHP-DEV] IMAP patch"
- Next in thread: Derick Rethans: "Re: [PHP-DEV] Re: PHP 4.0 Bug #7080 Updated: Recusive Include()s crash system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

