Last active
August 29, 2015 14:06
-
-
Save balsama/561a7246017ec1ac13f3 to your computer and use it in GitHub Desktop.
Force Error Reporting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// show errors | |
if (!defined('E_STRICT')) { define('E_STRICT', 2048); } | |
error_reporting(E_ALL | E_STRICT); | |
ini_set('display_errors', '1'); | |
ini_set('display_startup_errors', '1'); | |
ini_set('track_errors', '1'); | |
ini_set('html_errors', '0'); | |
ini_set('log_errors', '1'); | |
ini_set('error_log', dirname(__FILE__) . '/_php_error.log'); | |
// end: show errors | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment