diff options
Diffstat (limited to 'ext/oci8/tests/execute_mode.phpt')
| -rw-r--r-- | ext/oci8/tests/execute_mode.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/oci8/tests/execute_mode.phpt b/ext/oci8/tests/execute_mode.phpt new file mode 100644 index 0000000..90570ca --- /dev/null +++ b/ext/oci8/tests/execute_mode.phpt @@ -0,0 +1,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 |
