mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
3c3746916a
commit
f25afe6fbc
2 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue