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

From: Date: Sun, 09 Jul 2000 14:00:44 +0000
Subject: *crash* on try to find out how many nesting levels are allowed
Groups: php.dev 
Request: Send a blank email to php-dev+get-23909@lists.php.net to get a copy of this message
I wanted to find out how many nesting levels are allowed, but after class "a" gets instanciated from inside of "b", PHP crashes, that should not be. This code crashes PHP 4.0.1pl2, if someone could verify this... $level=1; class a { function a() { global $level; print $level; // if ($level==3) die(); $level++; new b(); } } class b { function b() { global $level; print $level; $level++; new a(); }} new a(); -- 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 ° · ° . ¤ ·

« previous php.dev (#23909) next »