mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
b047244ab7
commit
4670474d14
1 changed files with 1 additions and 13 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue