--TEST-- Prefetch with Nested cursors with INI setting. --INI-- oci8.default_prefetch=5 --SKIPIF-- = 2) || ($matches[1] >= 12) ))) { die("skip expected output only valid when using Oracle 11gR2 or greater database server"); } preg_match('/^([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)/', oci_client_version(), $matches); if (!(isset($matches[0]) && (($matches[1] == 11 && $matches[2] >= 2) || ($matches[1] >= 12) ))) { die("skip test expected to work only with Oracle 11gR2 or greater version of client"); } ?> --FILE-- --EXPECTF-- ----------------------------------------------- Test with Nested Cursors ----------------------------------------------- Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test0" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test1" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test2" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test3" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test4" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test5" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test6" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test7" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test8" } Fetch Row using Nested cursor Query array(1) { [0]=> string(%d) "test9" } Number of roundtrips made with prefetch count 5 for 10 rows is 3 Done