public static function Utils::windowsOs in Drupal driver for SQL Server and SQL Azure 3.1.x
Same name and namespace in other branches
- 4.2.x src/Driver/Database/sqlsrv/Utils.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Utils::windowsOs()
- 4.0.x src/Driver/Database/sqlsrv/Utils.php \Drupal\sqlsrv\Driver\Database\sqlsrv\Utils::windowsOs()
- 4.1.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 95
Class
- Utils
- Utility function for the SQL Server driver.
Namespace
Drupal\sqlsrv\Driver\Database\sqlsrvCode
public static function windowsOs() {
return strncasecmp(PHP_OS, 'WIN', 3) == 0;
}