print_r() now handles recursive arrays and objects correctly - removing warning

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66589 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Zak Greant 2001-12-31 19:01:52 +00:00
parent b047244ab7
commit 4670474d14

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.87 $ -->
<!-- $Revision: 1.88 $ -->
<reference id="ref.variables">
<title>Variable Functions</title>
<titleabbrev>Variables</titleabbrev>
@ -927,18 +927,6 @@ print_r ($a);
</programlisting>
</informalexample>
</para>
<warning>
<para>
This function will continue forever if given an <type>array</type>
or <type>object</type>
that contains a direct or indirect reference to itself or that
contains an <type>array</type> or <type>object</type> on a deeper
level that does so.
This is especially &true; for <literal>print_r($GLOBALS)</literal>,
as <literal>$GLOBALS</literal> is itself a global variable and
contains a reference to itself as such.
</para>
</warning>
</refsect1>
</refentry>