You are here

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

Same name and namespace in other branches
  1. 4.2.x src/Driver/Database/sqlsrv/Utils.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Utils::windowsOs()
  2. 3.1.x src/Driver/Database/sqlsrv/Utils.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Utils::windowsOs()
  3. 4.0.x src/Driver/Database/sqlsrv/Utils.php \Drupal\sqlsrv\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

src/Driver/Database/sqlsrv/Utils.php, line 96

Class

Utils
Utility function for the SQL Server driver.

Namespace

Drupal\sqlsrv\Driver\Database\sqlsrv

Code

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