fix #29885, count() doesn't handle infinite recursion.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168094 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Curt Zirzow 2004-09-06 20:13:42 +00:00
parent 3c3746916a
commit f25afe6fbc
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.count">
<refnamediv>
@ -35,6 +35,7 @@
will recursively count the array. This is particularly useful for
counting all the elements of a multidimensional array. The default
value for <parameter>mode</parameter> is <literal>0</literal>.
<function>count</function> does not detect infinite recursion.
</para>
<caution>
<para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.34 -->
<refentry id="function.get-defined-vars">
<refnamediv>
@ -17,7 +17,9 @@
<para>
This function returns an multidimensional array containing a list of
all defined variables, be them environment, server or user-defined
variables.
variables, within the scope that <function>get_defined_vars</function> is
called. As of PHP 5, the $GLOBALS variable is included in the results of
the array returned.
</para>
<para>
<informalexample>