--TEST-- Oracle Database 12c Implicit Result Sets: LOBs --SKIPIF-- true, 'timesten' => false); // test runs on these DBs require(dirname(__FILE__).'/skipif.inc'); preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); if (!(isset($matches[0]) && $matches[1] >= 12)) { die("skip expected output only valid when using Oracle Database 12c or greater"); } preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); if (!(isset($matches[0]) && $matches[0] >= 12)) { die("skip works only with Oracle 12c or greater version of Oracle client libraries"); } ?> --FILE-- load(); } else { echo " " . $item; } } echo "\n"; } echo "\nTest 2 - don't fetch all rows\n"; $s = oci_parse($c, "begin imp_res_lob_proc(); end;"); oci_execute($s); $row = oci_fetch_row($s); foreach ($row as $item) { if (is_object($item)) { echo " " . $item->load(); } else { echo " " . $item; } } echo "\n"; // Clean up $stmtarray = array( "drop procedure imp_res_lob_proc", "drop table imp_res_lob_tab", ); oci8_test_sql_execute($c, $stmtarray); ?> ===DONE=== --EXPECT-- Test 1 1 aaaaa a 2 bbbbb b 3 ccccc c 4 ddddd d X aaaaa bbbbb ccccc ddddd Test 2 - don't fetch all rows 1 aaaaa a ===DONE===