Date: 07/09/00
- Next message: eschmid+sic <email protected>: "Re: [PHP-DEV] Extensions calling C++"
- Previous message: Zeev Suraski: "Re: [PHP-DEV] Extensions calling C++"
- In reply to: Zeev Suraski: "Re: [PHP-DEV] *crash* on try to find out how many nestinglevelsare allowed"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] *crash* on try to find out how many nestinglevelsare allowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Zeev,
On 09-Jul-00 18:58:51, you wrote:
>The problem is that this arbitrary limit is meaningless; Calling a certain
>PHP function may exhaust your stack, whereas calling another one even a
>thousand times recursively may not exhaust it. It depends on the function.
It's pretty much like that execution time limit option. Some scripts may
take much more time to execute but it's an option that you can change even
at run time.
It was thought that 30 seconds was a reasonable time limit for most
scripts. You don't have to enable recursion limit by default, but a 100
would be a reasoanable limit for most scripts. Other scripts may change
the limit or simply disable the checks, just like for the time limit
option.
The point here is not to figure a reasonable limit, but rather to provide
some useful information to the programmer when stack exhaustion leads PHP
to crash. If you can make the limit be figured from the actual remaining
CPU stack space, better, but at least with nested call hard limit you can
provide a portable solution that programmers may enable or not.
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: email protected>?subject=Re:%20[PHP-DEV]%20*crash*%20on%20try%20to%20%20find%20out%20how%20manynestinglevelsare%20%20allowed&replyto=1400.225T533T11453626mlemos <email protected>">mlemos <email protected>">http://phpclasses.UpperDesign.com/?user=mlemos <email protected>
-- E-mail: mlemos <email protected> URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp ---- 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: eschmid+sic <email protected>: "Re: [PHP-DEV] Extensions calling C++"
- Previous message: Zeev Suraski: "Re: [PHP-DEV] Extensions calling C++"
- In reply to: Zeev Suraski: "Re: [PHP-DEV] *crash* on try to find out how many nestinglevelsare allowed"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] *crash* on try to find out how many nestinglevelsare allowed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

