Infinite recursion in the debug console Please Help

From: Date: Mon, 05 May 2003 17:47:28 +0000
Subject: Infinite recursion in the debug console Please Help
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9471@lists.php.net to get a copy of this message
I really like using the debug console. I've got it displaying things like my queries for me and it has been a real boon to developing database oriented sites that use smarty. My delimma, however, comes from the way it displays the variables sent to smarty. I have a class that has a 1 to 1 association with another class. That is, one object of a parent class contains a reference to a child class and the child class, in turn, contains a reference to the parent. This causes debug_print_var to recurse infinitely until it hits the memory limit and gets terminated. Is there a way to stop that from happening? I need that class to go into the templates this happens on, and I must have that 1 to 1 association, but that does represent an infinite loop for recursing through the objects. I could easily modify the modifier.debug_print_var.php to stop it from following references to already displayed objects (probably at least) but is there another way? Stopping the classes in question from displaying in the debug console would be a viable solution. Is there a way to do that in smarty? (IE exclude certain vars from the variable displayed list in the debug console) Any help or advice would be appreciated. Thanks, -Bob Programmer -- 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."

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