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/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Print_r (get_defined_vars()) gives a HUGE list... isn't that a problem? (/showthread.php?tid=2484)



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.