xref: /PHP-8.1/ext/odbc/tests/bug78473.phpt (revision 74859783)
1--TEST--
2Bug #78473 (odbc_close() closes arbitrary resources)
3--EXTENSIONS--
4odbc
5--FILE--
6<?php
7try {
8    odbc_close(STDIN);
9} catch (TypeError $err) {
10    echo $err->getMessage(), PHP_EOL;
11}
12var_dump(STDIN);
13?>
14--EXPECTF--
15odbc_close(): supplied resource is not a valid ODBC-Link resource
16resource(%d) of type (stream)
17