Re: *crash* on try to find out how many nesting levels are allowed

From: Date: Sun, 09 Jul 2000 16:49:29 +0000
Subject: Re: *crash* on try to find out how many nesting levels are allowed
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-23932@lists.php.net to get a copy of this message
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 > SM> w>> 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@kiffen.de | 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@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- 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

« previous php.dev (#23932) next »