You are here

public static function Utils::WindowsOS in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::WindowsOS()
  2. 3.0.x drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::windowsOs()

Wether or not this is a Windows operating system.

1 call to Utils::WindowsOS()
sqlsrv_requirements in ./sqlsrv.install
Implements hook_requirements().

File

drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php, line 145

Class

Utils

Namespace

Drupal\Driver\Database\sqlsrv

Code

public static function WindowsOS() {
  return strncasecmp(PHP_OS, 'WIN', 3) == 0;
}