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.

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 1759
The drush API implementation and helpers.

Code

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