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