Skip to content

Commit 0ac0713

Browse files
committed
standard: Validate sort_type argument in array_unique()
1 parent 747ddc4 commit 0ac0713

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/standard/tests/array/array_unique_invalid_sort_type.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ try {
1717
--EXPECT--
1818
array_unique(): Argument #2 ($flags) must be one of PHP_SORT_REGULAR, PHP_SORT_NUMERIC, PHP_SORT_STRING, or PHP_SORT_LOCALE_STRING
1919
array_unique(): Argument #2 ($flags) must be one of PHP_SORT_REGULAR, PHP_SORT_NUMERIC, PHP_SORT_STRING, or PHP_SORT_LOCALE_STRING
20+

0 commit comments

Comments
 (0)