--TEST--
Bug #44113 (New collection creation can fail with OCI-22303)
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); require(dirname(__FILE__).'/skipif.inc');
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
?>
--FILE--
<?php
require(dirname(__FILE__).'/connect.inc');
$stmtarray = array(
"create or replace type bug44113_list_t as table of number"
);
oci8_test_sql_execute($c, $stmtarray);
for ($x = 0; $x < 70000; $x++) {
if (!($var = oci_new_collection($c, 'BUG44113_LIST_T'))) {
print "Failed new collection creation on $x\n";
break;
}
}
print "Completed $x\n";
$stmtarray = array(
"drop type bug44113_list_t"
);
oci8_test_sql_execute($c, $stmtarray);
echo "Done\n";
?>
--EXPECT--
Completed 70000
Done