Welcome Guest, Not a member yet? Register   Sign In
index.php - show errors for development
#1

In index.php, on the ENVIRONMENT switch, case 'development', there is:

PHP Code:
error_reporting(-1);
ini_set('display_errors'1); 

I wonder if:
a - error_reporting(E_ALL); will be more descriptive
b - it would be ok to add `ini_set('display_startup_errors', 1);`, because:  
Quote:Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed. It's strongly recommended to keep display_startup_errors off, except for debugging.

final code:

PHP Code:
error_reporting(E_ALL);
ini_set('display_errors'1);
ini_set('display_startup_errors'1); 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB