xref: /PHP-8.3/ext/oci8/tests/exec_fetch.phpt (revision a53e5617)
1--TEST--
2fetch after failed oci_execute()
3--EXTENSIONS--
4oci8
5--SKIPIF--
6<?php
7require_once 'skipifconnectfailure.inc';
8?>
9--FILE--
10<?php
11
12require __DIR__.'/connect.inc';
13
14$sql = "select 2 from nonex_dual";
15$stmt = oci_parse($c, $sql);
16
17var_dump(oci_execute($stmt));
18var_dump(oci_fetch_array($stmt));
19
20echo "Done\n";
21?>
22--EXPECTF--
23Warning: oci_execute(): ORA-00942: %s in %s on line %d
24bool(false)
25
26Warning: oci_fetch_array(): ORA-24374: %s in %s on line %d
27bool(false)
28Done
29