Page 1 of 1

Locating erroneous php ouput

Posted: Mon Apr 18, 2016 1:48 pm
by bzvine
Hi,

I am using ajax to receive an xml document created by a php program. The program which outputs the xml document contains multiple required classes. One of the required classes is also sending out data (looks like print_r output) which causes ajax to not recognize the xml document.

I have searched for print_r, print, and echo but am unable to locate the culprit. Any suggestions would be appreciated.

I program using command line vi on a linux system running apache2 with php5 - nothing fancy. Do use php custom error handler (set_error_handler) for logging and error handling.

Thanks,
bzvine

Re: Locating erroneous php ouput

Posted: Mon Apr 18, 2016 1:57 pm
by Celauran
Checked for var_dump also?

Re: Locating erroneous php ouput

Posted: Mon Apr 18, 2016 2:32 pm
by bzvine
Hi,
No var_dump - grep'd for var_ and found var_export as the culprit.
Thanks Celauran!!