svn: /phpdoc/en/trunk/language/ functions.xml
| From: | Christoph Michael Becker | Date: | Sun, 14 Jun 2015 15:48:51 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/ functions.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13401@lists.php.net to get a copy of this message | ||
cmb Sun, 14 Jun 2015 15:48:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=336952
Log:
documented that infinite recursion is considered to be a programming error (fixes #69424)
Bug: https://bugs.php.net/69424 (Open) Deep recursion
should be documented more prominently
Changed paths:
U phpdoc/en/trunk/language/functions.xml
Modified: phpdoc/en/trunk/language/functions.xml
===================================================================
--- phpdoc/en/trunk/language/functions.xml 2015-06-14 15:43:31 UTC (rev 336951)
+++ phpdoc/en/trunk/language/functions.xml 2015-06-14 15:48:51 UTC (rev 336952)
@@ -141,9 +141,7 @@
</simpara>
<para>
- It is possible to call recursive functions in PHP. However avoid recursive
- function/method calls with over 100-200 recursion levels as it can smash
- the stack and cause a termination of the current script.
+ It is possible to call recursive functions in PHP.
<example>
<title>Recursive functions</title>
<programlisting role="php">
@@ -160,6 +158,13 @@
]]>
</programlisting>
</example>
+ <note>
+ <simpara>
+ Recursive function/method calls with over 100-200 recursion levels can
+ smash the stack and cause a termination of the current script. Especially,
+ infinite recursion is considered a programming error.
+ </simpara>
+ </note>
</para>
</sect1>