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