function drush_environment_check_os

4.x environment.inc drush_environment_check_os()
1 call to drush_environment_check_os()
drush_dispatch in includes/command.inc
Given a command record, dispatch it as if it were the original command. Executes in the currently bootstrapped site using the current option contexts. Note that drush_dispatch will not bootstrap any further than the current command has already…

File

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

Code

function drush_environment_check_os() {
  if (substr(PHP_OS, 0, 3) == 'WIN' && (drush_get_option('check_os', TRUE) !== 'i-want-4.x')) {
    $msg = 'Drush 4.x has significant limitations on Windows; it is not advisable to use on that platform. Substantial progress has been made towards supporing Windows on the 5.x branch; please upgrade. See http://drupal.org/project/drush for more information.';
    drush_log(dt($msg), 'warning');
  }
}