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