1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/pdo_dblib/tests/dbtds.phpt
2025-08-26 09:06:19 +02:00

22 lines
407 B
PHP

--TEST--
PDO_DBLIB: \Pdo\Dblib::ATTR_TDS_VERSION exposes a string or false
--EXTENSIONS--
pdo_dblib
--SKIPIF--
<?php
require __DIR__ . '/config.inc';
getDbConnection();
?>
--FILE--
<?php
require __DIR__ . '/config.inc';
$db = getDbConnection();
$version = $db->getAttribute(Pdo\Dblib::ATTR_TDS_VERSION);
var_dump((is_string($version) && strlen($version)) || $version === false);
?>
--EXPECT--
bool(true)