Annotation of embedaddon/php/ext/oci8/tests/array_bind_012.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: oci_bind_array_by_name(), SQLT_CHR, default max_length and empty array
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: require dirname(__FILE__).'/connect.inc';
! 9:
! 10: $statement = oci_parse($c, 'SELECT user FROM all_objects');
! 11:
! 12: $array = array();
! 13:
! 14: oci_bind_array_by_name($statement, ":c1", $array, 5, -10, SQLT_CHR);
! 15:
! 16: oci_execute($statement);
! 17:
! 18: var_dump($array);
! 19:
! 20: echo "Done\n";
! 21: ?>
! 22: --EXPECTF--
! 23: Warning: oci_bind_array_by_name(): Invalid max length value (-10) in %s on line %d
! 24: array(0) {
! 25: }
! 26: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>