xref: /PHP-8.0/ext/oci8/tests/execute_mode.phpt (revision 26dfce7f)
1--TEST--
2oci_execute() and invalid execute mode
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require __DIR__."/connect.inc";
9
10$pc = oci_pconnect($user, $password, $dbase);
11
12$stmt = oci_parse($pc, "select NULL from dual");
13oci_execute($stmt, -1);
14
15echo "Done\n";
16?>
17--EXPECTF--
18Warning: oci_execute(): Invalid execute mode given: -1 in %s on line %d
19Done
20