function _drush_postmortem

8.0.x environment.inc _drush_postmortem()
6.x environment.inc _drush_postmortem()
7.x environment.inc _drush_postmortem()
4.x environment.inc _drush_postmortem()
5.x environment.inc _drush_postmortem()
master environment.inc _drush_postmortem()

Evalute the environment after an abnormal termination and see if we can determine any configuration settings that the user might want to adjust.

1 call to _drush_postmortem()
drush_shutdown in includes/bootstrap.inc
Shutdown function for use while Drupal is bootstrapping and to return any registered errors.

File

includes/environment.inc, line 77
Functions used by drush to query the environment and setting the current configuration.

Code

function _drush_postmortem() {
  // Make sure that the memory limit has been bumped up from the minimum default value of 32M.
  $php_memory_limit = drush_memory_limit();
  if (($php_memory_limit > 0) && ($php_memory_limit <= 32 * DRUSH_DRUPAL_KILOBYTE * DRUSH_DRUPAL_KILOBYTE)) {
    drush_set_error('DRUSH_MEMORY_LIMIT', dt('Your memory limit is set to !memory_limit; drush needs as much memory to run as Drupal.  !php_ini_msg', array('!memory_limit' => $php_memory_limit / (DRUSH_DRUPAL_KILOBYTE * DRUSH_DRUPAL_KILOBYTE) . 'M', '!php_ini_msg' => _drush_php_ini_loaded_file_message())));
  }
}