From: Christopher Jones Date: Tue, 10 Nov 2009 22:48:37 +0000 (+0000) Subject: Add test for long fixed bug X-Git-Tag: php-5.4.0alpha1~191^2~2412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=922b65ac46d00a75942423fe750c6eb734a5b7c1;p=php Add test for long fixed bug --- 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===