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