log_errors instead of displaying error to stderr, you can choose to enable error logging to the file instead for production. More option can be study here : http://perishablepress.com/press/2008/01/30/advanced- php-error-handling -via-php/
Read the original here:
Advance php error handling