Re: print_r smater than var_dump

From: Date: Thu, 14 Mar 2002 09:48:05 +0000
Subject: Re: print_r smater than var_dump
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81187@lists.php.net to get a copy of this message
Andrey Hristov wrote:
I don't like print_r and most of the time I use var_dump() . Today I tried to print_r() $GLOBALS but not within a function and print_r() was smart to say that there is a recursion without diving in. var_dump() is diving up, up to some max level and produces E_WARNING. Is this the supposed behaviour? Isn't it better var_dump() to detect recursion like print_r() does?
Fixed in CVS. -- Yasuo Ohgaki yohgaki@dd.iij4u.or.jp

« previous php.dev (#81187) next »