CodeIgniter Forums

Full Version: Print_r (get_defined_vars()) gives a HUGE list... isn't that a problem?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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.