summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-12-20 18:46:56 +0100
committerAnatol Belski <ab@php.net>2017-12-20 18:46:56 +0100
commitc2308d5d7cb281b2e2b36774bbc4863429fab0bc (patch)
tree2720412aab93365dbf441519bc1ca6c0ea345a3d /ext/odbc
parent14393b5fb3713fd322fc98d899b14297088a88e9 (diff)
downloadphp-git-c2308d5d7cb281b2e2b36774bbc4863429fab0bc.tar.gz
Templatize driver name in the expected string
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/tests/bug73448.phpt10
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/odbc/tests/bug73448.phpt b/ext/odbc/tests/bug73448.phpt
index 4becce7e7b..5f0be913f2 100644
--- a/ext/odbc/tests/bug73448.phpt
+++ b/ext/odbc/tests/bug73448.phpt
@@ -25,7 +25,7 @@ foreach ($sqlCommandList as $exampleNumber => $sql) {
$e = odbc_errormsg($conn);
$n = odbc_error($conn);
- var_dump($sql, $n, $e, strlen($e));
+ var_dump($sql, $n, $e);
echo "\n";
}
@@ -38,15 +38,13 @@ foreach ($sqlCommandList as $exampleNumber => $sql) {
odbc_close($conn);
?>
==DONE==
---EXPECT--
+--EXPECTF--
string(42) "/* non existent procedure xy */ execute xy"
string(5) "37000"
-string(84) "[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'xy'."
-int(84)
+string(%d) "[Microsoft][%s][SQL Server]Could not find stored procedure 'xy'."
string(58) "/* another erroneous query */ SELECT * FROM zwiebelfleisch"
string(5) "S0002"
-string(84) "[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'zwiebelfleisch'."
-int(84)
+string(%d) "[Microsoft][%s][SQL Server]Invalid object name 'zwiebelfleisch'."
==DONE==