function drush_errors_off

8.0.x drush.inc drush_errors_off()
6.x drush.inc drush_errors_off()
7.x drush.inc drush_errors_off()
3.x drush.inc drush_errors_off()
4.x drush.inc drush_errors_off()
5.x drush.inc drush_errors_off()
master drush.inc drush_errors_off()

Turn PHP error handling off.

This is commonly used while bootstrapping Drupal for install or updates.

This also records the previous error_reporting setting, in case it wasn't recorded previously.

See also

drush_errors_off()

Related topics

2 calls to drush_errors_off()
update_main_prepare in commands/core/drupal/update_6.inc
update_main_prepare in commands/core/drupal/update_7.inc

File

includes/drush.inc, line 1601
The drush API implementation and helpers.

Code

function drush_errors_off() {
  drush_get_context('DRUSH_ERROR_REPORTING', error_reporting(0));
  ini_set('display_errors', FALSE);
}