summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/execute_mode.phpt
blob: ffa97f0f2fe8de2f03dbbe8ffd83bbd3fd2d5d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
oci_execute() and invalid execute mode
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--FILE--
<?php

require dirname(__FILE__)."/connect.inc";

$pc = oci_pconnect($user, $password, $dbase);

$stmt = oci_parse($pc, "select NULL from dual");
oci_execute($stmt, -1);

echo "Done\n";
?>
--EXPECTF--
Warning: oci_execute(): Invalid execute mode given: -1 in %s on line %d
Done