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

From: Date: Tue, 11 Jul 2000 03:00:06 +0000
Subject: Re: *crash* on try to find out how many nesting levels are allowed
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24152@lists.php.net to get a copy of this message
Must be something on Win32, or something, bcz this runs fine for me under linux and Solaris, both command line and Apache module. On Mon, 10 Jul 2000, waldschrott wrote the following to Stanislav Malyshev : > > w>> 1) If I did expect PHP to crash, then after 100,200 instances > > w>> But PHP crashes (as described) on level 3, that?s much to early. > > w>> 2) Even in nesting level 100,200 I did expect that PHP does not crash... > > w>> perhaps exit, but not to crash. > > > > Sorry, there's no good way on Unix to resolve "stack > > exceeded" condition. BTW, how did you know that it crashed on level 3? Are > > you sure you weren't mislead by output buffering (on all levels it > > comes)? Unfortunately, I've lost your script, so I cannot do more > > extensive testing on it. Could you private-mail/repost it? > > no private post, I want to disprove that I ran into OB stuff.... > This script crashes *before* $level reaches 3 and PHP die()´s, > I´m on Win2000/256MB/PHP4.0.1pl2(ApacheModule) > > > $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(); > > regards > > >

« previous php.dev (#24152) next »