Prevent notice and warnings in error_reporting?