Check end of files *.php (sorry but i don`t remeber ), if you have tab-symbol or space after "?>" in the end of file, you will have it in the start of returning result. And this garbage will cause error
I decide this problem by erase "?>" from the end of files *.php