Re: limit to var_dump?
| From: | Michiel Sikma | Date: | Sat, 17 Apr 2010 10:03:24 +0000 |
| Subject: | Re: limit to var_dump? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304158@lists.php.net to get a copy of this message | ||
On 16 April 2010 16:15, Ashley Sheridan <ash@ashleysheridan.co.uk> wrote:
> I'm seeing some strange behaviour with var_dump. Is there a limit to how
> many levels deep that var_dump can display?
>
> -snip-
>
> However, when I var_dump the top-most object (the Gantt object) the
> predecessors array for Gantt_Task 1.2 just shows as '...'. If I var_dump
> that particular object, I can see that the correct array element does
> exist.
>
> Is this just a random bug I've found, or is there an intended limit to
> how complex and deep var_dump can go? Would it have anything to do with
> the fact that Gantt contains multiple instances of the Gantt_Task
> object?
>
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
There's a limit to var_dump if you have Xdebug installed. See the Xdebug
site:
http://www.xdebug.org/docs/display
On another note, iirc var_dump itself can detect and prevent infinite
recursion.
Michiel