From: Antony Dovgal Date: Tue, 31 Jul 2007 21:11:33 +0000 (+0000) Subject: add test X-Git-Tag: php-5.2.4RC1~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49fbb7770b394c3c7e955f5fe626808bee1f52d0;p=php add test --- diff --git a/ext/oci8/tests/bug42134.phpt b/ext/oci8/tests/bug42134.phpt new file mode 100644 index 0000000000..2b0e3707d6 --- /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