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