You are here

public static function Utils::windowsOs in Drupal driver for SQL Server and SQL Azure 3.0.x

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. 8 drivers/lib/Drupal/Driver/Database/sqlsrv/Utils.php \Drupal\Driver\Database\sqlsrv\Utils::WindowsOS()

Whether or not this is a Windows operating system.

Does there need to be a function to determine if the database is on a Windows environment?

Return value

bool Is this server Windows?

File

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

Class

Utils
Utility function for the SQL Server driver.

Namespace

Drupal\Driver\Database\sqlsrv

Code

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