1--TEST--
2IntlBreakIterator::getLocale(): arg errors
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11$bi = new IntlRuleBasedBreakIterator('[\p{Letter}\uFFFD]+;[:number:]+;');
12$bi->setText("\x80sdfé\x90d888 dfsa9");
13
14var_dump($bi->getLocale(1, 2));
15var_dump($bi->getLocale(array()));
16var_dump($bi->getLocale());
17
18--EXPECTF--
19
20Warning: IntlBreakIterator::getLocale() expects exactly 1 parameter, 2 given in %s on line %d
21
22Warning: IntlBreakIterator::getLocale(): breakiter_get_locale: bad arguments in %s on line %d
23bool(false)
24
25Warning: IntlBreakIterator::getLocale() expects parameter 1 to be long, array given in %s on line %d
26
27Warning: IntlBreakIterator::getLocale(): breakiter_get_locale: bad arguments in %s on line %d
28bool(false)
29
30Warning: IntlBreakIterator::getLocale() expects exactly 1 parameter, 0 given in %s on line %d
31
32Warning: IntlBreakIterator::getLocale(): breakiter_get_locale: bad arguments in %s on line %d
33bool(false)
34