From 49fbb7770b394c3c7e955f5fe626808bee1f52d0 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 31 Jul 2007 21:11:33 +0000 Subject: [PATCH] add test --- ext/oci8/tests/bug42134.phpt | 100 +++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 ext/oci8/tests/bug42134.phpt diff --git a/ext/oci8/tests/bug42134.phpt b/ext/oci8/tests/bug42134.phpt new file mode 100644 index 00000000000..2b0e3707d62 --- /dev/null +++ b/ext/oci8/tests/bug42134.phpt @@ -0,0 +1,100 @@ +--TEST-- +Bug #42134 (Collection error for invalid collection name) +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: oci_new_collection(): OCI-22303: type ""."ABC" not found in %s on line %d +Normal connection: New Collection error +array(4) { + ["code"]=> + int(22303) + ["message"]=> + string(34) "OCI-22303: type ""."ABC" not found" + ["offset"]=> + int(0) + ["sqltext"]=> + string(0) "" +} + +Warning: oci_new_collection(): OCI-22303: type ""."DEF" not found in %s on line %d +New connection: New Collection error +array(4) { + ["code"]=> + int(22303) + ["message"]=> + string(34) "OCI-22303: type ""."DEF" not found" + ["offset"]=> + int(0) + ["sqltext"]=> + string(0) "" +} + +Warning: oci_new_collection(): OCI-22303: type ""."GHI" not found in %s on line %d +Persistent connection: New Collection error +array(4) { + ["code"]=> + int(22303) + ["message"]=> + string(34) "OCI-22303: type ""."GHI" not found" + ["offset"]=> + int(0) + ["sqltext"]=> + string(0) "" +} +Done