Re: PHP 4.0 Bug #7080 Updated: Recusive Include()s crash system
| From: | Harold Paulson | Date: | Wed, 11 Oct 2000 00:00:58 +0000 |
| Subject: | Re: PHP 4.0 Bug #7080 Updated: Recusive Include()s crash system | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-34627@lists.php.net to get a copy of this message | ||
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@internal.org
> 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@internal.org
> 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
>
>