Re: PHP 4.0 Bug #2004: recursive call limitation

From: Date: Mon, 09 Aug 1999 17:36:03 +0000
Subject: Re: PHP 4.0 Bug #2004: recursive call limitation
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-9685@lists.php.net to get a copy of this message
Did you try with the latest CVS version of PHP 4.0? There was a leak in the stack which I fixed a couple of weeks ago. What is the deepest nesting level you need? Tens, hundreds, or thousands? Andi At 02:52 PM 8/9/99 +0000, gregori@datanetms.co.uk wrote:
From:             gregori@datanetms.co.uk
Operating system: linux (Redhat 6)
PHP version:      4.0 Beta 1
PHP Bug Type:     Feature/Change Request
Bug description: recursive call limitation I dunno where to reply to that ... so I do it here : 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. 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 !? thank you if you could add that, gregori -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#9685) next »