From 1c6ea06c73a2fc997c350fc9ff5cac28f7f5f22e Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Sat, 13 Mar 2010 00:25:11 +0000 Subject: [PATCH] New OCI8 test --- ext/oci8/tests/bug51253.phpt | 165 +++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 ext/oci8/tests/bug51253.phpt diff --git a/ext/oci8/tests/bug51253.phpt b/ext/oci8/tests/bug51253.phpt new file mode 100644 index 0000000000..fea3333ccf --- /dev/null +++ b/ext/oci8/tests/bug51253.phpt @@ -0,0 +1,165 @@ +--TEST-- +Bug #51253 (oci_bind_array_by_name() array references) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +Test 1 +array(5) { + [0]=> + string(4) "five" + [1]=> + string(4) "four" + [2]=> + string(5) "three" + [3]=> + string(3) "two" + [4]=> + string(3) "one" +} +array(5) { + [0]=> + string(4) "five" + [1]=> + string(4) "four" + [2]=> + string(5) "three" + [3]=> + string(3) "two" + [4]=> + string(3) "one" +} +Test 2 +array(5) { + [0]=> + string(3) "one" + [1]=> + string(3) "two" + [2]=> + string(5) "three" + [3]=> + string(4) "four" + [4]=> + string(4) "five" +} +array(5) { + [0]=> + string(3) "one" + [1]=> + string(3) "two" + [2]=> + string(5) "three" + [3]=> + string(4) "four" + [4]=> + string(4) "five" +} +Test 3 +array(5) { + [0]=> + string(4) "five" + [1]=> + string(4) "four" + [2]=> + string(5) "three" + [3]=> + string(3) "two" + [4]=> + string(3) "one" +} +array(5) { + [0]=> + string(4) "five" + [1]=> + string(4) "four" + [2]=> + string(5) "three" + [3]=> + string(3) "two" + [4]=> + string(3) "one" +} +Done -- 2.40.0