Re: Print_r bug?
| From: | Johannes Schlueter | Date: | Wed, 12 Feb 2003 15:51:03 +0000 |
| Subject: | Re: Print_r bug? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135320@lists.php.net to get a copy of this message | ||
On Wednesday 12 February 2003 16:53, Leif K-Brooks wrote:
> I think I've found a print_r bug with reference recursion. The
> following example script runs forever:
>
> <?php
> $GLOBALS['foo'] = &$GLOBALS;
> print_r($GLOBALS);
> ?>
>
> Am I correct in thinking this is a bug that should be reported?
No, thats no bug. $GLOBALS includes $GLOBALS which include $GLOBALS....
Use var_dump for $GLOBALS instead ;-)
johannes