Re: [PHP-DEV] *crash* on try to find out how many nesting levels are allowed From: thies <email protected>
Date: 07/09/00

On Sun, Jul 09, 2000 at 04:36:51PM +0200, waldschrott wrote:
> SM> w>> I wanted to find out how many nesting levels are allowed, but after
> SM> w>> class "a" gets instanciated from inside of "b", PHP crashes, that should
> SM> w>> not be.
> SM>
> SM> And what did you expect? You tried to crash it, you succeeded. Infinite
> SM> recursion leads to crash. Try it in C, you get the same.
>
> Do think of me as a thinking human being :)
> 1) If I did expect PHP to crash, then after 100,200 instances
> But PHP crashes (as described) on level 3, that´s much to early.
> 2) Even in nesting level 100,200 I did expect that PHP does not crash...
> perhaps exit, but not to crash.

    
        after adding
        
        ."\n"; flush();
        
        to the two print statements it crashes for me (linux
        2.2.16) in level 4342. (you only saw 3 because of
        buffering).

        (i agree it should not crash)

        tc

>
> regards
>
> --
> o----------0-¬---------O-·---¬----o---®-----o o O ° .
> | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° ·
> 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . ·
> | psychedelic experience | gott <email protected> | O ° o °
> o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·
>
>
> --
> 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>

-- 

Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

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