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
--
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 ° · ° . ¤ ·