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