[PHPDOC] cvs: phpdoc /de/functions/ var.xml /en/functions/ var.xml From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 05/25/00

hholzgra Thu May 25 18:55:27 2000 EDT

  Modified files:
    /phpdoc/en/functions var.xml
    /phpdoc/de/functions var.xml
  Log:
  added a warning regarding print_r() and selfcontained arrays and objects
  output will not terminate in this case as reported in Bug report #3926
  
  
Index: phpdoc/en/functions/var.xml
diff -u phpdoc/en/functions/var.xml:1.16 phpdoc/en/functions/var.xml:1.17
--- phpdoc/en/functions/var.xml:1.16 Thu May 25 18:25:58 2000
+++ phpdoc/en/functions/var.xml Thu May 25 18:55:27 2000
@@ -532,6 +532,16 @@
       </programlisting>
      </informalexample>
     </para>
+ <para>
+ <warning>
+ This function will continue forever if given an array or object
+ that contains a direct or indirect reference to itself or that
+ contains an array or object on a deepre 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.
+ </warning>
+ </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/de/functions/var.xml
diff -u phpdoc/de/functions/var.xml:1.12 phpdoc/de/functions/var.xml:1.13
--- phpdoc/de/functions/var.xml:1.12 Thu May 25 18:24:42 2000
+++ phpdoc/de/functions/var.xml Thu May 25 18:55:27 2000
@@ -501,6 +501,13 @@
       </programlisting>
      </informalexample>
     </para>
+ <para>
+ <warning>
+ Diese Funktion ist nicht in der Lage, zyklische Referenzen aufzulösen,
+ d.h. die Ausgabe eines Arrays oder Objektes, das sich selbst enthält,
+ wie z.B. <literal>print_r($GLOBALS)</literal>, wird niemals beendet.
+ </warning>
+ </para>
    </refsect1>
   </refentry>