mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
77daa3482d
Can take one of: * IntlPartsIterator::KEY_SEQUENTIAL (keys are 0, 1, ...) * IntlPartsIterator::KEY_LEFT (keys are left boundaries) * IntlPartsIterator::KEY_LEFT (keys are right boundaries) The default is IntlPartsIterator::KEY_SEQUENTIAL (the previous behavior).
34 lines
1022 B
PHP
34 lines
1022 B
PHP
--TEST--
|
|
IntlBreakIterator::getPartsIterator(): bad args
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "pt_PT");
|
|
|
|
$it = IntlBreakIterator::createWordInstance(NULL);
|
|
var_dump($it->getPartsIterator(array()));
|
|
var_dump($it->getPartsIterator(1, 2));
|
|
var_dump($it->getPartsIterator(-1));
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECTF--
|
|
|
|
Warning: IntlBreakIterator::getPartsIterator() expects parameter 1 to be long, array given in %s on line %d
|
|
|
|
Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad arguments in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: IntlBreakIterator::getPartsIterator() expects at most 1 parameter, 2 given in %s on line %d
|
|
|
|
Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad arguments in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: IntlBreakIterator::getPartsIterator(): breakiter_get_parts_iterator: bad key type in %s on line %d
|
|
bool(false)
|
|
==DONE==
|