1--TEST-- 2Oracle Database 12c Implicit Result Sets: oci_get_implicit_resultset: no implicit results 3--SKIPIF-- 4<?php 5if (!extension_loaded('oci8')) die ("skip no oci8 extension"); 6$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs 7require(dirname(__FILE__).'/skipif.inc'); 8preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); 9if (!(isset($matches[0]) && $matches[1] >= 12)) { 10 die("skip expected output only valid when using Oracle Database 12c or greater"); 11} 12preg_match('/^[[:digit:]]+/', oci_client_version(), $matches); 13if (!(isset($matches[0]) && $matches[0] >= 12)) { 14 die("skip works only with Oracle 12c or greater version of Oracle client libraries"); 15} 16?> 17--FILE-- 18<?php 19 20require(dirname(__FILE__).'/connect.inc'); 21 22// Run Test 23 24echo "Test 1\n"; 25 26$s = oci_parse($c, "select * from dual"); 27oci_execute($s); 28 29while (($s1 = oci_get_implicit_resultset($s))) { 30 while (($row = oci_fetch_array($s1, OCI_ASSOC+OCI_RETURN_NULLS)) != false) { 31 foreach ($row as $item) { 32 echo " ".$item; 33 } 34 echo "\n"; 35 } 36} 37 38var_dump($s1); 39 40?> 41===DONE=== 42<?php exit(0); ?> 43--EXPECT-- 44Test 1 45bool(false) 46===DONE=== 47