1--TEST--
2IntlBreakIterator: clone handler
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_clone = clone $bi;
13var_dump(get_class($bi), get_class($bi_clone));
14var_dump($bi == $bi_clone);
15
16$bi->setText('foobar');
17$bi_clone = clone $bi;
18var_dump(get_class($bi), get_class($bi_clone));
19var_dump($bi == $bi_clone);
20--EXPECT--
21string(26) "IntlRuleBasedBreakIterator"
22string(26) "IntlRuleBasedBreakIterator"
23bool(true)
24string(26) "IntlRuleBasedBreakIterator"
25string(26) "IntlRuleBasedBreakIterator"
26bool(true)
27