phpsafe 𝕏 GitHub
Official CA 421DTkQ3TSG3n7F9SkNZj9NxvdFGbypwkctPd2uupump This is the only official address.

display_errors turned on in code

Severity: Medium CWE-209 OWASP A05:2021 Security Misconfiguration rule: display_errors

Why it matters

Error messages shown to visitors expose file paths, SQL queries and sometimes credentials.

βœ• Vulnerable
ini_set('display_errors', '1');
βœ“ Secure
ini_set('display_errors', '0');
ini_set('log_errors', '1');
ini_set('error_log', '/var/log/php/app.log');

How to fix

Show errors only in development. In production log them with log_errors instead.

Scan my code

Paste a file and PHP Safe points to every line that matches this rule.

Scan my code β†’