[PHP-CVS] [php-src] master: ext/odbc: applied fixers to improve test robustness (#23022)
[email protected] (NickSdot via GitHub) Tue, 4 Aug 2026 18:29:54 +0000
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: NickSdot (NickSdot)
Committer: GitHub (web-flow)
Pusher: TimWolla
Date: 2026-08-04T20:29:51+02:00
Commit: https://github.com/php/php-src/commit/86579e04b2b8dd97c558c326d7687a548e96aca3
Raw diff: https://github.com/php/php-src/commit/86579e04b2b8dd97c558c326d7687a548e96aca3.diff
ext/odbc: applied fixers to improve test robustness (#23022)
Changed paths:
M ext/odbc/tests/bug78473.phpt
Diff:
diff --git a/ext/odbc/tests/bug78473.phpt b/ext/odbc/tests/bug78473.phpt
index 9313237efde2..7c909d882cb6 100644
--- a/ext/odbc/tests/bug78473.phpt
+++ b/ext/odbc/tests/bug78473.phpt
@@ -7,10 +7,10 @@ odbc
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)