Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
modifier.debug_print_var.php fault-recursion in objects [b7]

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
Petr Voinov
Smarty n00b


Joined: 13 Jan 2010
Posts: 2

PostPosted: Fri Jan 22, 2010 11:24 pm    Post subject: modifier.debug_print_var.php fault-recursion in objects [b7] Reply with quote

the debug_print_var modifier fault on data like
php:
Code:
$user = new user();
$user->recursion_test = $user;
$this->View->assign('user',$user);

tpl:
Code:
{$user|debug_print_var}


the error is:
Code:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71595 bytes) in ........\smarty\plugins\modifier.debug_print_var.php on line 46


Where usual php code
Code:
print_r($user);
shows:
Code:
user Object
(
..............
    [recursion_test] => user Object
 *RECURSION*
)
Back to top
View user's profile Send private message
tomazws
Smarty n00b


Joined: 21 Jun 2013
Posts: 1

PostPosted: Fri Jun 21, 2013 5:39 pm    Post subject: Reply with quote

Code:
{$user|@debug_print_var}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP