What are the potential risks of enabling the display_errors option in PHP for sensitive information?

Enabling the display_errors option in PHP can potentially expose sensitive information such as database credentials, file paths, and other critical data to malicious users. This can lead to security vulnerabilities and compromise the confidentiality of the application. To mitigate this risk, it is recommended to disable the display_errors option in production environments and instead log errors to a secure location.

// Disable display_errors in production environment
ini_set('display_errors', 0);