Re: PHP 4.0 Bug #1901 Updated: recursive call limitation

From: Date: Mon, 09 Aug 1999 15:43:14 +0000
Subject: Re: PHP 4.0 Bug #1901 Updated: recursive call limitation
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-9679@lists.php.net to get a copy of this message
We definitly need a such flag. Recursive functions are really usefull when you want to do some mathematics or work with directory tree for instance. By the way ... if there are a little stack ... I think we could have problem with big script ... I could imagine a script who call a couple of functions who have a lot of parameters !? It could be a problem !? No !? It's a bit scaring to have a such limitation !? gregori > ID: 1901 > Updated by: zeev > Reported By: gregori@datanetms.co.uk > Status: Closed > Bug Type: Reproduceable crash > Assigned To: > Comments: > > PHP 4.0 (Zend) uses the stack for intensive data, rather than using > the heap. That means that its tolerance recursive functions > is significantly lower than that of other languages. > > It's relatively easy to tell Zend not to use the stack for this > data, and use the heap instead - which would greatly increase the > number of recursive functions possible - in the price of reduced > speed. If you're interested in such a setting, let me know, we > may add a compile-time switch. > > Full Bug description available at: > http://bugs.php.net/version4/?id=1901

« previous php.dev (#9679) next »