1 (edited by pedrotuga 2007-05-07 21:01)

Topic: why the 'exit' on the dump() function.

Ok... using the dump() function cause me some real trouble... until i found out that that that was the casue of my problems.

The problem is that it has an "exit" that prevents some post code execution that might be useful.

I wrote this code:
http://punbb.org/forums/viewtopic.php?id=15830

and out of nowhere it output an incomplete page, i couldnt figure out why. Today i restarted writing the script and the same hapened. This time i just wrote a line of code before i refresh, fortunatly.

that was werd so i tryed a print_r() instead... the layout showed properly.

This is a super small detail, but, unless there is some reason i don't know about, i would suggest thar line to be removed.

Re: why the 'exit' on the dump() function.

The reason there's an exit() there is because the way I use it, I generally do not want to proceed after printing out the debug information. If you want to use it in a different way, feel free to remove the exit call smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."