1--TEST--
2IntlBreakIterator::first()/last()/previous()/current(): 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->first(1));
15var_dump($bi->last(1));
16var_dump($bi->previous(1));
17var_dump($bi->current(1));
18
19--EXPECTF--
20
21Warning: IntlBreakIterator::first() expects exactly 0 parameters, 1 given in %s on line %d
22
23Warning: IntlBreakIterator::first(): breakiter_first: bad arguments in %s on line %d
24bool(false)
25
26Warning: IntlBreakIterator::last() expects exactly 0 parameters, 1 given in %s on line %d
27
28Warning: IntlBreakIterator::last(): breakiter_last: bad arguments in %s on line %d
29bool(false)
30
31Warning: IntlBreakIterator::previous() expects exactly 0 parameters, 1 given in %s on line %d
32
33Warning: IntlBreakIterator::previous(): breakiter_previous: bad arguments in %s on line %d
34bool(false)
35
36Warning: IntlBreakIterator::current() expects exactly 0 parameters, 1 given in %s on line %d
37
38Warning: IntlBreakIterator::current(): breakiter_current: bad arguments in %s on line %d
39bool(false)
40