xref: /PHP-7.3/ext/pdo_dblib/tests/dbtds.phpt (revision b760b462)
1--TEST--
2PDO_DBLIB: \PDO::DBLIB_ATTR_TDS_VERSION exposes a string or false
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo_dblib')) die('skip not loaded');
6require __DIR__ . '/config.inc';
7?>
8--FILE--
9<?php
10require __DIR__ . '/config.inc';
11
12$version = $db->getAttribute(PDO::DBLIB_ATTR_TDS_VERSION);
13var_dump((is_string($version) && strlen($version)) || $version === false);
14
15?>
16--EXPECT--
17bool(true)
18