From d91f464e0020a770505e5bd09cfc3451d16c6596 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Tue, 10 Nov 2009 22:48:37 +0000 Subject: [PATCH] Add test for long fixed bug --- ext/oci8/tests/bug36403.phpt | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 ext/oci8/tests/bug36403.phpt diff --git a/ext/oci8/tests/bug36403.phpt b/ext/oci8/tests/bug36403.phpt new file mode 100644 index 0000000000..68c5f7b0a1 --- /dev/null +++ b/ext/oci8/tests/bug36403.phpt @@ -0,0 +1,76 @@ +--TEST-- +Bug #36403 (oci_execute no longer supports OCI_DESCRIBE_ONLY) +--SKIPIF-- + +--FILE-- + 0; $i--) { + echo oci_field_name($s, $i) . "\n"; +} + +echo "Test 2\n"; + +// Should generate an error: ORA-24338: statement handle not executed +// since the statement handle was only described and not executed +$row = oci_fetch_array($s); + +// Clean up + +//require(dirname(__FILE__).'/drop_table.inc'); + +$stmtarray = array( + "drop table bug36403_tab" +); + +foreach ($stmtarray as $stmt) { + $s = oci_parse($c, $stmt); + oci_execute($s); +} + +oci_close($c); + +?> +===DONE=== + +--EXPECTF-- +Test 1 +COL4 +COLUMN3 +COL2 +C1 +Test 2 + +Warning: oci_fetch_array(): ORA-24338: %sbug36403.php on line %d +===DONE=== -- 2.49.0