Re: [PHP-DEV] *crash* on try to find out how many nesting levelsareallowed From: Shane Caraveo (shane <email protected>)
Date: 07/09/00

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 <email protected>
> +972-3-6139665

-- 
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>