Commit 86579e04b2b for php.net
commit 86579e04b2b8dd97c558c326d7687a548e96aca3
Author: NickSdot <32384907+NickSdot@users.noreply.github.com>
Date: Wed Aug 5 01:29:51 2026 +0700
ext/odbc: applied fixers to improve test robustness (#23022)
diff --git a/ext/odbc/tests/bug78473.phpt b/ext/odbc/tests/bug78473.phpt
index 9313237efde..7c909d882cb 100644
--- a/ext/odbc/tests/bug78473.phpt
+++ b/ext/odbc/tests/bug78473.phpt
@@ -7,10 +7,10 @@
try {
odbc_close(STDIN);
} catch (TypeError $err) {
- echo $err->getMessage(), PHP_EOL;
+ echo $err::class, ': ', $err->getMessage(), PHP_EOL;
}
var_dump(STDIN);
?>
--EXPECT--
-odbc_close(): Argument #1 ($odbc) must be of type Odbc\Connection, resource given
+TypeError: odbc_close(): Argument #1 ($odbc) must be of type Odbc\Connection, resource given
resource(1) of type (stream)