1--TEST--
2PDO ODBC getAttribute SERVER_INFO and SERVER_VERSION
3--EXTENSIONS--
4pdo_odbc
5--SKIPIF--
6<?php
7require 'ext/pdo/tests/pdo_test.inc';
8PDOTest::skip();
9?>
10--FILE--
11<?php
12require 'ext/pdo/tests/pdo_test.inc';
13$db = PDOTest::test_factory('ext/pdo_odbc/tests/common.phpt');
14// Obviously, we can't assume what driver is being used, so just check strings
15// Example driver output (MariaDB ODBC):
16// PDO::ATTR_SERVER_INFO: MariaDB
17// PDO::ATTR_SERVER_VERSION: 10.04.000018
18// As well as IBM i ODBC:
19// PDO::ATTR_SERVER_INFO: DB2/400 SQL
20// PDO::ATTR_SERVER_VERSION: 07.02.0015
21var_dump($db->getAttribute(PDO::ATTR_SERVER_INFO));
22var_dump($db->getAttribute(PDO::ATTR_SERVER_VERSION));
23--EXPECTF--
24string(%d) "%s"
25string(%d) "%s"
26