xref: /PHP-8.4/ext/pdo_dblib/tests/dbtds.phpt (revision d6a0b3af)
1--TEST--
2PDO_DBLIB: \PDO::DBLIB_ATTR_TDS_VERSION exposes a string or false
3--EXTENSIONS--
4pdo_dblib
5--SKIPIF--
6<?php
7require __DIR__ . '/config.inc';
8getDbConnection();
9?>
10--FILE--
11<?php
12require __DIR__ . '/config.inc';
13
14$db = getDbConnection();
15
16$version = $db->getAttribute(PDO::DBLIB_ATTR_TDS_VERSION);
17var_dump((is_string($version) && strlen($version)) || $version === false);
18
19?>
20--EXPECT--
21bool(true)
22