Re: *crash* on try to find out how many nesting levelsare allowed
| From: | Shane Caraveo | Date: | Sun, 09 Jul 2000 14:41:14 +0000 |
| Subject: | Re: *crash* on try to find out how many nesting levelsare allowed | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-23915@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
>
> w>> I wanted to find out how many nesting levels are allowed, but after
> w>> class "a" gets instanciated from inside of "b", PHP crashes, that
> w>> should
> w>> not be.
>
> And what did you expect? You tried to crash it, you succeeded. Infinite
> recursion leads to crash. Try it in C, you get the same.
That's an entirely lame attitude. The goal here should be a stable php,
irregardless of the quality of code php is running. In the case of
infinite loops, recursions, etc., php can either throw an error if it is
somehow recognizable, or it can simply timeout. Allowing it to crash
because 'infinite recursion leads to crash' is pathetic. If it crashes,
it can be fixed.
Shane