diff options
Diffstat (limited to 'tests/bug36010.phpt')
-rw-r--r-- | tests/bug36010.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bug36010.phpt b/tests/bug36010.phpt new file mode 100644 index 0000000000..d451f3f2f4 --- /dev/null +++ b/tests/bug36010.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #36010 (Crash when executing SQL statment with lob parameter twice) +--SKIPIF-- +<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> +--FILE-- +<?php + +require dirname(__FILE__).'/connect.inc'; + +function f($conn) +{ + $sql = "begin :p_clob := 'lob string'; end;"; + $stid = oci_parse($conn, $sql); + $clob = oci_new_descriptor($conn, OCI_D_LOB); + oci_bind_by_name($stid, ":p_clob", $clob, -1, OCI_B_CLOB); + $r = oci_execute($stid, OCI_DEFAULT); +} + +f($c); +f($c); + +echo "Done\n"; + +?> +--EXPECT-- +Done |