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 9try { 10 odbc_close(STDIN); 11} catch (TypeError $err) { 12 echo $err->getMessage(), PHP_EOL; 13} 14var_dump(STDIN); 15?> 16--EXPECTF-- 17odbc_close(): supplied resource is not a valid ODBC-Link resource 18resource(%d) of type (stream) 19