1--TEST--
2IntlBreakIterator::next(): 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->next(1, 2));
15var_dump($bi->next(array()));
16--EXPECTF--
17Warning: IntlBreakIterator::next() expects exactly 1 parameter, 2 given in %s on line %d
18
19Warning: IntlBreakIterator::next(): breakiter_next: bad arguments in %s on line %d
20bool(false)
21
22Warning: IntlBreakIterator::next() expects parameter 1 to be integer, array given in %s on line %d
23
24Warning: IntlBreakIterator::next(): breakiter_next: bad arguments in %s on line %d
25bool(false)
26