cvs: php-src /ext/oci8/tests bug36010.phpt
| From: | Antony Dovgal | Date: | Sat, 14 Jan 2006 22:22:48 +0000 |
| Subject: | cvs: php-src /ext/oci8/tests bug36010.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36516@lists.php.net to get a copy of this message | ||
tony2001 Sat Jan 14 22:22:48 2006 UTC
Added files:
/php-src/ext/oci8/tests bug36010.phpt
Log:
add test for bug #36010
http://cvs.php.net/viewcvs.cgi/php-src/ext/oci8/tests/bug36010.phpt?view=markup&rev=1.1
Index: php-src/ext/oci8/tests/bug36010.phpt
+++ php-src/ext/oci8/tests/bug36010.phpt
--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