diff --git a/functions/var.xml b/functions/var.xml index 651b9dc1c8..b39b0b8482 100644 --- a/functions/var.xml +++ b/functions/var.xml @@ -531,6 +531,16 @@ print_r ($a); ?> + + + + 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 print_r($GLOBALS), + as $GLOBALS is itself a global variable and + contains a reference to itself as such. +