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

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