Date: 07/10/00
- Next message: PHP development <email protected>: "[PHP-DEV] writing documentation for php modules"
- Previous message: Joey Smith: "Re: [PHP-DEV] Extensions calling C++"
- In reply to: waldschrott: "Re: [PHP-DEV] *crash* on try to find out how many nesting levels are allowed"
- Next in thread: thies <email protected>: "Re: [PHP-DEV] *crash* on try to find out how many nesting levels are allowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>
>
>
-- 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>
- Next message: PHP development <email protected>: "[PHP-DEV] writing documentation for php modules"
- Previous message: Joey Smith: "Re: [PHP-DEV] Extensions calling C++"
- In reply to: waldschrott: "Re: [PHP-DEV] *crash* on try to find out how many nesting levels are allowed"
- Next in thread: thies <email protected>: "Re: [PHP-DEV] *crash* on try to find out how many nesting levels are allowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

