1--TEST-- 2Bug #74468 Wrong reflection on Collator::sortWithSortKeys 3--SKIPIF-- 4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> 5<?php if (version_compare(INTL_ICU_VERSION, '51.2') >= 0) die('skip for ICU < 51.2'); ?> 6--FILE-- 7<?php 8$rm = new ReflectionMethod(Collator::class, 'sortWithSortKeys'); 9var_dump($rm->getNumberOfParameters()); 10var_dump($rm->getNumberOfRequiredParameters()); 11 12$rf = new ReflectionFunction('collator_sort_with_sort_keys'); 13var_dump($rf->getNumberOfParameters()); 14var_dump($rf->getNumberOfRequiredParameters()); 15?> 16===DONE=== 17--EXPECT-- 18int(1) 19int(1) 20int(2) 21int(2) 22===DONE=== 23