How to set the "PHP error reporting" parameter

From ISPWiki
Jump to: navigation, search

How to change error_reporting

In order to set the error_reporting parameter, navigate to Web-server settings->PHP->Settings->Main.

  1. Check the "Report all errors" box in order to add the E_ALL value into error_reporting. After that you will see the "Ignore errors" field where you can specify what errors should be hidden (they will be excluded with logical operators "& ~"). After you save the changes, the following record will be added into php.ini:
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT.
  2. Clear the"Show all errors" check box, and the E_ALL value won't be added into error_reporting. After that you will see the "Display errors" field, where you can select errors that should be printed on the screen (they will be included with the logical operator "|"). After you save the form, the following record will be added into php.ini:
    error_reporting = E_ERROR | E_NOTICE