--TEST-- Test sort() function : usage variations - sort mixed values, 'sort_flag' as default/SORT_REGULAR (OK to fail as result is unpredectable) --FILE-- --EXPECTF-- *** Testing sort() : usage variations *** -- Testing sort() by supplying mixed value array, 'flag' value is default -- bool(true) array(22) { [0]=> string(0) "" [1]=> NULL [2]=> string(0) "" [3]=> float(0) [4]=> bool(false) [5]=> int(-4) [6]=> float(-2.98989) [7]=> int(-2) [8]=> float(-2) [9]=> string(3) "-.9" [10]=> int(0) [11]=> string(1) "4" [12]=> float(4) [13]=> string(1) "5" [14]=> string(4) "True" [15]=> string(2) "ab" [16]=> string(4) "abcd" [17]=> string(14) "abcd%0abcd%0abcd" [18]=> string(1) "b" [19]=> array(0) { } [20]=> array(4) { [0]=> array(3) { [0]=> int(33) [1]=> int(-5) [2]=> int(6) } [1]=> array(1) { [0]=> int(11) } [2]=> array(2) { [0]=> int(22) [1]=> int(-55) } [3]=> array(0) { } } [21]=> bool(true) } -- Testing sort() by supplying mixed value array, 'flag' value is SORT_REGULAR -- bool(true) array(22) { [0]=> string(0) "" [1]=> NULL [2]=> string(0) "" [3]=> float(0) [4]=> bool(false) [5]=> int(-4) [6]=> float(-2.98989) [7]=> int(-2) [8]=> float(-2) [9]=> string(3) "-.9" [10]=> int(0) [11]=> string(1) "4" [12]=> float(4) [13]=> string(1) "5" [14]=> string(4) "True" [15]=> string(2) "ab" [16]=> string(4) "abcd" [17]=> string(14) "abcd%0abcd%0abcd" [18]=> string(1) "b" [19]=> array(0) { } [20]=> array(4) { [0]=> array(3) { [0]=> int(33) [1]=> int(-5) [2]=> int(6) } [1]=> array(1) { [0]=> int(11) } [2]=> array(2) { [0]=> int(22) [1]=> int(-55) } [3]=> array(0) { } } [21]=> bool(true) } Done