Re: [SMARTY] possible bug in debug_print_var

From: Date: Thu, 27 Mar 2003 22:11:34 +0000
Subject: Re: [SMARTY] possible bug in debug_print_var
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8965@lists.php.net to get a copy of this message
i fixed this. sorry for the delay. On Thu, Mar 20, 2003 at 01:22:46PM -0500, Robert Lowe wrote: > I noticed a little odd behavior in debug_print_var in the current stable > release of smarty. > > Basically, if you specify a length on that modifier, it does not propogate > out in calls that it makes to itself when processing arrays. > > For instance, on the line which reads: > > $return = smarty_modifier_debug_print_var($curr_val, $depth+1); > > The end result is that values in arrays get truncated to 40 instead of > what I request. So I simply include $length in the calls. This appears a > couple of times in the function so I changed it there as well. > > Is there any reason why it was the other way? If not, perhaps this should > get fixed in distributions of smarty. > > -Bob

« previous php.smarty.general (#8965) next »