--TEST-- Bug #41069 (Oracle crash with certain data over a DB-link when prefetch memory limit used - Oracle bug 6039623) --EXTENSIONS-- oci8 --SKIPIF-- true, 'timesten' => false); // test runs on these DBs require __DIR__.'/skipif.inc'; if (empty($dbase)) die ("skip requires network connection alias for DB link loopback"); if ($test_drcp) die("skip DRCP does not support shared database links"); ?> --INI-- oci8.default_prefetch=5 --FILE-- --EXPECT-- Test 1: non-DB link case that always worked array(3) { [0]=> array(13) { ["C1"]=> string(3) "111" ["C2"]=> string(7) "aaaaaaa" ["C3"]=> NULL ["C4"]=> NULL ["C5"]=> string(1) "b" ["C6"]=> string(1) "c" ["C7"]=> NULL ["C8"]=> NULL ["C9"]=> string(10) "01/17/2008" ["C10"]=> string(10) "01/07/2017" ["C12"]=> string(4) "2222" ["C13"]=> NULL ["C15"]=> string(10) "zzzzzzzzzz" } [1]=> array(13) { ["C1"]=> string(3) "112" ["C2"]=> string(7) "aaaaaaa" ["C3"]=> string(8) "bbbbbbbb" ["C4"]=> string(7) "ccccccc" ["C5"]=> string(1) "d" ["C6"]=> string(1) "e" ["C7"]=> string(7) "rrrrrrr" ["C8"]=> NULL ["C9"]=> string(10) "04/16/2007" ["C10"]=> string(10) "04/16/2007" ["C12"]=> string(4) "2223" ["C13"]=> string(8) "xxxxxxxx" ["C15"]=> string(8) "zzzzzzzz" } [2]=> array(13) { ["C1"]=> string(3) "113" ["C2"]=> string(7) "aaaaaaa" ["C3"]=> string(10) "bbbbbbbbbb" ["C4"]=> string(6) "cccccc" ["C5"]=> string(1) "e" ["C6"]=> string(1) "f" ["C7"]=> string(4) "dddd" ["C8"]=> NULL ["C9"]=> string(10) "12/04/2006" ["C10"]=> string(10) "12/04/2006" ["C12"]=> string(4) "2224" ["C13"]=> NULL ["C15"]=> string(7) "zzzzzzz" } } Test 2: Should not crash array(3) { [0]=> array(13) { ["C1"]=> string(3) "111" ["C2"]=> string(7) "aaaaaaa" ["C3"]=> NULL ["C4"]=> NULL ["C5"]=> string(1) "b" ["C6"]=> string(1) "c" ["C7"]=> NULL ["C8"]=> NULL ["C9"]=> string(10) "01/17/2008" ["C10"]=> string(10) "01/07/2017" ["C12"]=> string(4) "2222" ["C13"]=> NULL ["C15"]=> string(10) "zzzzzzzzzz" } [1]=> array(13) { ["C1"]=> string(3) "112" ["C2"]=> string(7) "aaaaaaa" ["C3"]=> string(8) "bbbbbbbb" ["C4"]=> string(7) "ccccccc" ["C5"]=> string(1) "d" ["C6"]=> string(1) "e" ["C7"]=> string(7) "rrrrrrr" ["C8"]=> NULL ["C9"]=> string(10) "04/16/2007" ["C10"]=> string(10) "04/16/2007" ["C12"]=> string(4) "2223" ["C13"]=> string(8) "xxxxxxxx" ["C15"]=> string(8) "zzzzzzzz" } [2]=> array(13) { ["C1"]=> string(3) "113" ["C2"]=> string(7) "aaaaaaa" ["C3"]=> string(10) "bbbbbbbbbb" ["C4"]=> string(6) "cccccc" ["C5"]=> string(1) "e" ["C6"]=> string(1) "f" ["C7"]=> string(4) "dddd" ["C8"]=> NULL ["C9"]=> string(10) "12/04/2006" ["C10"]=> string(10) "12/04/2006" ["C12"]=> string(4) "2224" ["C13"]=> NULL ["C15"]=> string(7) "zzzzzzz" } } Done