--TEST-- Bug #40415 (Using oci_fetchall with nested cursors) --SKIPIF-- true, 'timesten' => false); // test runs on these DBs require(dirname(__FILE__).'/skipif.inc'); ?> --FILE-- --EXPECTF-- Test 1: Associate fetch of nested cursor Got row "11". Now getting nested cursor: bool(true) array(1) { ["ID2"]=> string(2) "21" } array(1) { ["ID2"]=> string(2) "22" } array(1) { ["ID2"]=> string(2) "23" } Got row "12". Now getting nested cursor: bool(true) array(1) { ["ID2"]=> string(2) "21" } array(1) { ["ID2"]=> string(2) "22" } array(1) { ["ID2"]=> string(2) "23" } Got row "13". Now getting nested cursor: bool(true) array(1) { ["ID2"]=> string(2) "21" } array(1) { ["ID2"]=> string(2) "22" } array(1) { ["ID2"]=> string(2) "23" } Test 2: fetchall of nested cursor Rows returned 3 array(2) { ["ID1"]=> array(3) { [0]=> string(2) "11" [1]=> string(2) "12" [2]=> string(2) "13" } ["CURSOR"]=> array(3) { [0]=> resource(%d) of type (oci8 statement) [1]=> resource(%d) of type (oci8 statement) [2]=> resource(%d) of type (oci8 statement) } } Getting nested cursor bool(true) array(1) { ["ID2"]=> array(3) { [0]=> string(2) "21" [1]=> string(2) "22" [2]=> string(2) "23" } } Getting nested cursor bool(true) array(1) { ["ID2"]=> array(3) { [0]=> string(2) "21" [1]=> string(2) "22" [2]=> string(2) "23" } } Getting nested cursor bool(true) array(1) { ["ID2"]=> array(3) { [0]=> string(2) "21" [1]=> string(2) "22" [2]=> string(2) "23" } } Done