function drush_environment_check_os

4.x drush_environment_check_os()
1 call to drush_environment_check_os()
drush_dispatch in includes/
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…


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


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 for more information.';
    drush_log(dt($msg), 'warning');