CodeIgniter Forums
Print_r (get_defined_vars()) gives a HUGE list... isn't that a problem? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Print_r (get_defined_vars()) gives a HUGE list... isn't that a problem? (/thread-2484.html)



Print_r (get_defined_vars()) gives a HUGE list... isn't that a problem? - El Forum - 08-08-2007

[eluser]See64[/eluser]
While debugging I used print_r(get_defined_vars()); to see if I had all my variables in order. Unfortunately this produced a HUGE list, even triggering a "PHP Fatal error: Allowed memory size" on the first try.

Why is this so huge? Isn't this bad for performance? (EditSmile Or is it because it says *RECURSION*?

I have a clean install of CodeIgniter running, with only FreakAuth and some very basic "hello world"-ing from myself.