/php-src/ext/standard/tests/array/sort/ |
H A D | array_multisort_error.phpt | 2 Test array_multisort() function : error conditions 5 echo "*** Testing array_multisort() : error conditions ***\n"; 7 echo "\n-- Testing array_multisort() function with repeated flags --\n"; 10 var_dump( array_multisort($ar1, SORT_ASC, SORT_ASC) ); 15 echo "\n-- Testing array_multisort() function with repeated flags --\n"; 18 var_dump( array_multisort($ar1, SORT_STRING, SORT_NUMERIC) ); 25 *** Testing array_multisort() : error conditions *** 27 -- Testing array_multisort() function with repeated flags -- 28 array_multisort(): Argument #3 must be an array or a sort flag that has not already been specified 30 -- Testing array_multisort() function with repeated flags -- [all …]
|
H A D | array_multisort_variation1.phpt | 2 Test array_multisort() function : usage variation 5 echo "*** Testing array_multisort() : usage variation ***\n"; 95 var_dump( array_multisort($value)); 103 *** Testing array_multisort() : usage variation *** 112 array_multisort(): Argument #1 ($array) must be a valid sort flag 115 array_multisort(): Argument #1 ($array) must be a valid sort flag 118 array_multisort(): Argument #1 ($array) must be an array or a sort flag 121 array_multisort(): Argument #1 ($array) must be an array or a sort flag 124 array_multisort(): Argument #1 ($array) must be an array or a sort flag 127 array_multisort(): Argument #1 ($array) must be an array or a sort flag [all …]
|
H A D | array_multisort_variation3.phpt | 2 Test array_multisort() function : usage variation 5 echo "*** Testing array_multisort() : usage variation ***\n"; 103 *** Testing array_multisort() : usage variation *** 112 array_multisort(): Argument #3 must be a valid sort flag 115 array_multisort(): Argument #3 must be a valid sort flag 118 array_multisort(): Argument #3 must be an array or a sort flag 121 array_multisort(): Argument #3 must be an array or a sort flag 124 array_multisort(): Argument #3 must be an array or a sort flag 127 array_multisort(): Argument #3 must be an array or a sort flag 130 array_multisort(): Argument #3 must be an array or a sort flag [all …]
|
H A D | array_multisort_basic1.phpt | 2 Test array_multisort() function : basic functionality 5 echo "*** Testing array_multisort() : basic functionality ***\n"; 11 echo "\n-- Testing array_multisort() function with all normal arguments --\n"; 12 var_dump( array_multisort($ar1, SORT_ASC, SORT_REGULAR, $ar2, SORT_DESC, SORT_STRING) ); 15 echo "\n-- Testing array_multisort() function with one argument --\n"; 16 var_dump( array_multisort($ar2) ); 22 *** Testing array_multisort() : basic functionality *** 24 -- Testing array_multisort() function with all normal arguments -- 43 -- Testing array_multisort() function with one argument --
|
H A D | array_multisort_variation2.phpt | 2 Test array_multisort() function : usage variation 5 echo "*** Testing array_multisort() : usage variation ***\n"; 103 var_dump( array_multisort($ar1, $value) ); 111 *** Testing array_multisort() : usage variation *** 120 array_multisort(): Argument #2 must be a valid sort flag 123 array_multisort(): Argument #2 must be a valid sort flag 126 array_multisort(): Argument #2 must be an array or a sort flag 129 array_multisort(): Argument #2 must be an array or a sort flag 132 array_multisort(): Argument #2 must be an array or a sort flag 135 array_multisort(): Argument #2 must be an array or a sort flag [all …]
|
H A D | array_multisort_variation5.phpt | 2 Test array_multisort() function : usage variation - testing with multiple array arguments 5 echo "*** Testing array_multisort() : Testing all array sort specifiers ***\n"; 9 array_multisort($ar, SORT_REGULAR, SORT_ASC); 12 array_multisort($ar, SORT_STRING, SORT_ASC); 15 array_multisort($ar, SORT_NUMERIC, SORT_ASC); 21 *** Testing array_multisort() : Testing all array sort specifiers ***
|
H A D | array_multisort_variation6.phpt | 2 Test array_multisort() function : usage variation - testing with multiple array arguments 5 echo "*** Testing array_multisort() : Testing all array sort specifiers ***\n"; 9 array_multisort($ar, SORT_REGULAR, SORT_DESC); 12 array_multisort($ar, SORT_STRING, SORT_DESC); 15 array_multisort($ar, SORT_NUMERIC, SORT_DESC); 21 *** Testing array_multisort() : Testing all array sort specifiers ***
|
H A D | array_multisort_basic2.phpt | 2 Test array_multisort() function : basic functionality 5 echo "*** Testing array_multisort() : basic functionality - renumbering of numeric keys ***\n"; 11 echo "\n-- Testing array_multisort() function with all normal arguments --\n"; 12 var_dump( array_multisort($ar1, SORT_ASC, SORT_REGULAR, $ar2, SORT_ASC, SORT_NUMERIC) ); 17 *** Testing array_multisort() : basic functionality - renumbering of numeric keys *** 19 -- Testing array_multisort() function with all normal arguments --
|
H A D | array_multisort_variation11.phpt | 2 Test array_multisort() function : usage variation - testing with empty array 5 echo "*** Testing array_multisort() : Testing with empty array ***\n"; 7 var_dump(array_multisort(array())); 11 *** Testing array_multisort() : Testing with empty array ***
|
H A D | array_multisort_variation10.phpt | 2 Test array_multisort() function : usage variation - testing with anonymous array arguments 5 echo "*** Testing array_multisort() : Testing with anonymous arguments ***\n"; 7 var_dump(array_multisort(array(1,3,2,4))); 11 *** Testing array_multisort() : Testing with anonymous arguments ***
|
H A D | array_multisort_natural.phpt | 2 Test array_multisort() function : natural sorting 5 echo "*** Testing array_multisort() : natural sorting\n"; 23 array_multisort($b, SORT_NATURAL, $a); 29 *** Testing array_multisort() : natural sorting
|
H A D | array_multisort_variation4.phpt | 2 Test array_multisort() function : usage variation - testing with multiple array arguments 5 echo "*** Testing array_multisort() : Testing with multiple array arguments ***\n"; 11 var_dump(array_multisort($arr1, $arr2, $arr3)); 19 *** Testing array_multisort() : Testing with multiple array arguments ***
|
H A D | array_multisort_case.phpt | 2 Test array_multisort() function : case-sensitive 5 echo "*** Testing array_multisort() : case-sensitive\n"; 27 array_multisort($b, SORT_STRING, $a); 33 *** Testing array_multisort() : case-sensitive
|
H A D | array_multisort_incase.phpt | 2 Test array_multisort() function : case-insensitive 5 echo "*** Testing array_multisort() : case-insensitive\n"; 27 array_multisort($b, SORT_STRING | SORT_FLAG_CASE, $a); 33 *** Testing array_multisort() : case-insensitive
|
H A D | array_multisort_natural_case.phpt | 2 Test array_multisort() function : natural sorting case-sensitive 5 echo "*** Testing array_multisort() : natural sorting case-sensitive\n"; 27 array_multisort($b, SORT_NATURAL, $a); 33 *** Testing array_multisort() : natural sorting case-sensitive
|
H A D | array_multisort_natural_incase.phpt | 2 Test array_multisort() function : natural sorting case-insensitive 5 echo "*** Testing array_multisort() : natural sorting case-insensitive\n"; 27 array_multisort($b, SORT_NATURAL | SORT_FLAG_CASE, $a); 33 *** Testing array_multisort() : natural sorting case-insensitive
|
H A D | bug25359.phpt | 2 Bug #25359 (array_multisort() does not work in a function if array is global or reference) 8 global $data; // Remove this line to make array_multisort() work 12 array_multisort($sort, $data);
|
H A D | bug77395.phpt | 2 Bug #77395 (segfault about array_multisort) 9 array_multisort($a, SORT_ASC, $b); // if comment this line, no segfault happen 15 array_multisort(array_column($data, 'bb'),SORT_DESC, $data); // PHP Warning error
|
H A D | array_multisort_variation7.phpt | 2 Test array_multisort() function : usage variation - test sort order of all types 5 echo "*** Testing array_multisort() : usage variation - test sort order of all types***\n"; 29 var_dump(array_multisort($inputs)); 34 *** Testing array_multisort() : usage variation - test sort order of all types***
|
H A D | array_multisort_variation8.phpt | 2 Test array_multisort() function : usage variation - test sort order of all types 5 echo "*** Testing array_multisort() : usage variation - test sort order of all types***\n"; 34 var_dump(array_multisort($inputs, SORT_STRING)); 39 *** Testing array_multisort() : usage variation - test sort order of all types***
|
/php-src/Zend/tests/ |
H A D | call_user_func_array_prefer_ref.phpt | 7 call_user_func_array('array_multisort', [[3, 2, 1]]); 10 call_user_func_array('array_multisort', $args); 15 call_user_func('array_multisort', $array); 21 call_user_func_array('array_multisort', [[3, 2, 1]]); 24 call_user_func_array('array_multisort', $args); 29 call_user_func('array_multisort', $array);
|
H A D | array_multisort_exception.phpt | 2 Exception handling in array_multisort() 6 array_multisort($array, SORT_STRING); 11 #0 %s(%d): array_multisort(Array, 2)
|
H A D | bug52939.phpt | 6 var_dump(array_multisort($ar1)); 11 var_dump(call_user_func_array("array_multisort", $args)); 16 var_dump(call_user_func_array("array_multisort", $args));
|
/php-src/Zend/tests/named_params/ |
H A D | call_user_func_array_variadic.phpt | 6 call_user_func_array("array_multisort", $args); 9 Fatal error: Uncaught ArgumentCountError: array_multisort() expects at least 1 argument, 0 given in… 11 #0 %scall_user_func_array_variadic.php(3): array_multisort(: 1)
|
/php-src/ext/standard/tests/array/ |
H A D | gh9244.phpt | 2 Bug GH-9244 (Segfault with array_multisort + array_shift) 7 array_multisort($order, $items);
|