xref: /PHP-8.1/ext/oci8/tests/execute_mode.phpt (revision 74859783)
1--TEST--
2oci_execute() and invalid execute mode
3--EXTENSIONS--
4oci8
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