[php-src] master: ext/odbc: applied fixers to improve test robustness (#23022)

NickSdot via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.