xref: /PHP-7.4/ext/odbc/tests/bug78473.phpt (revision b5572658)
1--TEST--
2Bug #78473 (odbc_close() closes arbitrary resources)
3--SKIPIF--
4<?php
5if (!extension_loaded('odbc')) die('skip odbc extension not available');
6?>
7--FILE--
8<?php
9odbc_close(STDIN);
10var_dump(STDIN);
11?>
12--EXPECTF--
13Warning: odbc_close(): supplied resource is not a valid ODBC-Link resource in %s on line %d
14resource(%d) of type (stream)
15