function drush_errors_off

8.0.x drush_errors_off()
6.x drush_errors_off()
7.x drush_errors_off()
3.x drush_errors_off()
4.x drush_errors_off()
5.x drush_errors_off()
master 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


Related topics

2 calls to drush_errors_off()
update_main_prepare in commands/core/drupal/
update_main_prepare in commands/core/drupal/


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


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