Anybody know why command-line php scripts (I'm using the cgi version on RH Linux) send errors to STDOUT instead of STDERR? Is this on purpose? Can I somehow make php errors go to STDERR instead?
Reason: I have a php script running on cron. I want to send the normal results to a logfile, but get emailed if there's an error processing the php, such as a parse error. My cron knows to send STDOUT to the logfile and STDERR to an email. But it's all coming out on STDOUT!
Any ideas? Is this a bug or intentional behavior?
thanks!