1--TEST--
2IntlCalendar::getKeywordValuesForLocale(): bad arguments
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7if (version_compare(INTL_ICU_VERSION, '4.2') < 0)
8	die('skip for ICU 4.2+');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12
13var_dump(intlcal_get_keyword_values_for_locale(1, 2));
14var_dump(IntlCalendar::getKeywordValuesForLocale(1, 2, array()));
15--EXPECTF--
16Warning: intlcal_get_keyword_values_for_locale() expects exactly 3 parameters, 2 given in %s on line %d
17
18Warning: intlcal_get_keyword_values_for_locale(): intlcal_get_keyword_values_for_locale: bad arguments in %s on line %d
19bool(false)
20
21Warning: IntlCalendar::getKeywordValuesForLocale() expects parameter 3 to be boolean, array given in %s on line %d
22
23Warning: IntlCalendar::getKeywordValuesForLocale(): intlcal_get_keyword_values_for_locale: bad arguments in %s on line %d
24bool(false)
25