Re: *crash* on try to find out how many nesting levelsareallowed
| From: | Shane Caraveo | Date: | Sun, 09 Jul 2000 16:25:25 +0000 |
| Subject: | Re: *crash* on try to find out how many nesting levelsareallowed | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-23926@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
>
> SC>> somehow recognizable, or it can simply timeout. Allowing it to crash
> SC>> because 'infinite recursion leads to crash' is pathetic. If it crashes,
> SC>> it can be fixed.
>
> Just let me to get to your box with that lovely hammer of mine, and we'll
> talk about "if it crashes, it can be fixed" ;)
That's why I keep my address private! ;-)
> Seriously, there are conditions of which PHP is unable to recover as of
> now. Two known are "no memory" and "no stack" conditions. There's no
> good
> way on Unix to gracefully recover from this condition, without generally
> slowing down execution. If you know such a way, you are welcome to propose
> it.
But seriously, HOW MUCH would it slow down? Are we talking 5% or 50%?
Considering the speed increase php4 has over php3, I wouldn't mind
loosing 5% to provide additional stability. If it were significantly
higher, then rather than saying something like 'dont do it and it wont
crash', provide the explanation that protecting against such a crash
would slow down php so much that it isn't worth it, so you just have to
pay attention to your scripting.
> --
> Stanislav Malyshev stas@zend.com
> +972-3-6139665