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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to