#35159 [Bgs]: big variable value in recursive function crashes
| From: | nlopess@php.net | Date: | Wed, 09 Nov 2005 23:22:46 +0000 |
| Subject: | #35159 [Bgs]: big variable value in recursive function crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87971@lists.php.net to get a copy of this message | ||
ID: 35159
Updated by: nlopess@php.net
Reported By: pekka at photography-on-the dot net
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5CVS, 4.4.1 (2005-11-08) (cvs)
Assigned To: dmitry
New Comment:
Currently you should avoid too deep recursion in PHP.
We need (and Java also) to implement the Tail Call optimization, as can
be seen in Lisp or Scheme. This allows to recurse without using the
stack for some cases.
This is one of the things I would like to do in the near future.
Previous Comments:
------------------------------------------------------------------------
[2005-11-09 14:27:55] pekka at photography-on-the dot net
That is surprising, such a simple example crashes PHP! I would be very
interested to learn if there is a workaround, when you need to recurse
very large data sets?
------------------------------------------------------------------------
[2005-11-09 11:12:16] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Known issue, not a bug...
------------------------------------------------------------------------
[2005-11-09 08:24:56] dmitry@php.net
Crash occurs becaose of program stack overflow. All PHP versions are
affected.
------------------------------------------------------------------------
[2005-11-08 21:21:22] support at zend dot com
4.3.11, 4.4.0 also affected, but with different limits...
------------------------------------------------------------------------
[2005-11-08 21:06:57] pekka at photography-on-the dot net
correction: 5.0.4 is not free of this, in php 5.0.4 the limit is 1291
on same machine.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35159
--
Edit this bug report at http://bugs.php.net/?id=35159&edit=1