possible bug in debug_print_var
| From: | Robert Lowe | Date: | Thu, 20 Mar 2003 18:22:46 +0000 |
| Subject: | possible bug in debug_print_var | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8785@lists.php.net to get a copy of this message | ||
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
--
geek[0]: "It frustrates me how web services are often described as
revolutionary, when built on technologies such as UDDI and WDSL which in
turn are based on relatively mature technologies such as XML and HTTP."
geek[1]: "Remember, revolutionary also means to go in circles."