1--TEST-- 2oci_bind_array_by_name(), SQLT_CHR, default max_length and empty array 3--EXTENSIONS-- 4oci8 5--FILE-- 6<?php 7 8require __DIR__.'/connect.inc'; 9 10$statement = oci_parse($c, 'SELECT user FROM all_objects'); 11 12$array = array(); 13 14oci_bind_array_by_name($statement, ":c1", $array, 5, -10, SQLT_CHR); 15 16oci_execute($statement); 17 18var_dump($array); 19 20echo "Done\n"; 21?> 22--EXPECTF-- 23Warning: oci_bind_array_by_name(): Invalid max length value (-10) in %s on line %d 24array(0) { 25} 26Done 27