xref: /PHP-7.3/ext/oci8/tests/exec_fetch.phpt (revision 37652336)
1--TEST--
2fetch after failed oci_execute()
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require dirname(__FILE__).'/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