xref: /PHP-8.0/ext/oci8/tests/array_bind_009.phpt (revision a55b0abe)
1--TEST--
2oci_bind_array_by_name() and invalid values 9
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require __DIR__.'/connect.inc';
9
10var_dump(oci_bind_array_by_name($c, ":c1", $array, 5, 5, SQLT_CHR));
11?>
12--EXPECTF--
13Fatal error: Uncaught TypeError: oci_bind_array_by_name(): supplied resource is not a valid oci8 statement resource in %s:%d
14Stack trace:
15#0 %s: oci_bind_array_by_name(%s)
16#1 {main}
17  thrown in %s on line %d