2 Bug #42496 (LOB fetch leaks cursors, eventually failing with ORA-1000 maximum open cursors reached)
5 $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
6 require(dirname(__FILE__).'/skipif.inc');
7 if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
12 require dirname(__FILE__).'/connect.inc';
17 "DROP table bug42496_2_tab",
18 "CREATE table bug42496_2_tab(c1 CLOB, c2 CLOB)",
19 "INSERT INTO bug42496_2_tab VALUES('test1', 'test1')",
20 "INSERT INTO bug42496_2_tab VALUES('test2', 'test2')",
21 "INSERT INTO bug42496_2_tab VALUES('test3', 'test3')"
24 oci8_test_sql_execute($c, $stmtarray);
30 for ($i = 0; $i < 15000; $i++) {
31 $s = oci_parse($c, "SELECT * from bug42496_2_tab");
32 if (oci_execute($s)) {
34 while ($arr = oci_fetch_assoc($s)) {
39 oci_free_statement($s);
47 "DROP table bug42496_2_tab"
50 oci8_test_sql_execute($c, $stmtarray);