forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose TDS version as \PDO::DBLIB_ATTR_TDS_VERSION attribute on \PDO …
…instance
- Loading branch information
1 parent
50421b3
commit b760b46
Showing
5 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--TEST-- | ||
PDO_DBLIB: \PDO::DBLIB_ATTR_TDS_VERSION exposes a string or false | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded('pdo_dblib')) die('skip not loaded'); | ||
require __DIR__ . '/config.inc'; | ||
?> | ||
--FILE-- | ||
<?php | ||
require __DIR__ . '/config.inc'; | ||
|
||
$version = $db->getAttribute(PDO::DBLIB_ATTR_TDS_VERSION); | ||
var_dump((is_string($version) && strlen($version)) || $version === false); | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |