Re: Re: print_r smater than var_dump

From: Date: Thu, 14 Mar 2002 08:11:59 +0000
Subject: Re: Re: print_r smater than var_dump
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81184@lists.php.net to get a copy of this message
Yeah... AFAICSee two alogithms are used. var_dump() is printed with (apply_function) and the applied recursively calls the callee, print_r() is just recursively diving up. Wow I saw goto in the source (good hack) :)))) Andrey ----- Original Message ----- From: <derick@php.net> To: "Yasuo Ohgaki" <yohgaki@dd.iij4u.or.jp> Cc: <php-dev@lists.php.net>; "Andrey Hristov" <ahristov@icygen.com> Sent: Thursday, March 14, 2002 10:05 AM Subject: Re: [PHP-DEV] Re: print_r smater than var_dump > On Thu, 14 Mar 2002, Yasuo Ohgaki wrote: > > > 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? > > > > > > Best regards, > > > Andrey Hristov > > > > > > > > > > File a bug report. It's easy one to fix. > > It's not an easy fix. > > Derick > > ---------------------------------------------------------------------- > PHP: Scripting the Web - derick@php.net > All your branches are belong to me! > SRM: Site Resource Manager - www.vl-srm.net > ----------------------------------------------------------------------- > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.dev (#81184) next »