summaryrefslogtreecommitdiff
path: root/ext/odbc/tests/bug78473.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/odbc/tests/bug78473.phpt')
-rw-r--r--ext/odbc/tests/bug78473.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/odbc/tests/bug78473.phpt b/ext/odbc/tests/bug78473.phpt
new file mode 100644
index 0000000000..fd73b6cc07
--- /dev/null
+++ b/ext/odbc/tests/bug78473.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #78473 (odbc_close() closes arbitrary resources)
+--SKIPIF--
+<?php
+if (!extension_loaded('odbc')) die('skip odbc extension not available');
+?>
+--FILE--
+<?php
+odbc_close(STDIN);
+var_dump(STDIN);
+?>
+--EXPECTF--
+Warning: odbc_close(): supplied resource is not a valid ODBC-Link resource in %s on line %d
+resource(%d) of type (stream)